UI: Formular nach Agent-Übernahme neu aufbauen (zeigte alte Werte); Cache-Busting für JS/CSS

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
RubenRWU
2026-10-15 16:51:16 +02:00
parent 40b3f687f7
commit c0d3ec5dab
4 changed files with 21 additions and 6 deletions

View File

@@ -30,3 +30,14 @@ def _live() -> bool:
templates.env.globals["deploy_live"] = _live
def _static_v(name: str) -> str:
"""Cache-Busting: Änderungszeit der Datei als Query-Parameter, damit Browser nach einem Deploy nie veraltete JS/CSS-Dateien nutzen."""
try:
return str(int((ROOT / "app" / "static" / name).stat().st_mtime))
except OSError:
return "0"
templates.env.globals["static_v"] = _static_v