Version HTML5 asset URLs
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-17 11:48:43 +03:00
parent 0a16058ebd
commit d3ae2459ce
3 changed files with 25 additions and 13 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ _HTML5_ASSETS_DIR = Path(__file__).resolve().parent / "static" / "html5"
class Html5StaticFiles(StaticFiles):
def file_response(self, *args, **kwargs):
response = super().file_response(*args, **kwargs)
response.headers.setdefault("Cache-Control", "public, max-age=3600")
response.headers.setdefault("Cache-Control", "public, max-age=86400")
return response