fix(stt): cache-bust de l'URL HUD en kiosk + bump 0.2.1

Ouvre le HUD avec ?v=<timestamp> (URL unique par lancement) pour que le
navigateur ne puisse jamais servir une version cachée de l'ancien HUD.
Complète Cache-Control: no-store côté serveur.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Qjq5jHiqNepnobJpHYpCa
This commit is contained in:
Claude 2026-06-18 19:57:12 +00:00
parent 4fc83251c0
commit 3123b99bbf
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[project]
name = "stt"
version = "0.2.0"
version = "0.2.1"
description = "STT — client vocal Jarvis du homelab Funk (voix + HUD, parle au STT-server)"
requires-python = ">=3.11"
readme = "README.md"

View file

@ -9,6 +9,7 @@ from __future__ import annotations
import asyncio
import json
import threading
import time
from functools import partial
from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
@ -97,7 +98,9 @@ async def serve(cfg: dict[str, Any], make_engine, client) -> None:
url = f"http://{ui['ws_host']}:{ui['http_port']}/"
print(f" HUD : {url}")
if ui.get("kiosk"):
_open_browser(url, kiosk=True)
# ?v=<timestamp> : URL unique à chaque lancement → le navigateur ne peut
# pas servir une version cachée du HUD (« ancien HUD persistant »).
_open_browser(f"{url}?v={int(time.time())}", kiosk=True)
await asyncio.Future() # tourne indéfiniment