mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-09 00:44:42 +02:00
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:
parent
4fc83251c0
commit
3123b99bbf
2 changed files with 5 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue