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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user