Update app.py

This commit is contained in:
gru
2025-08-29 23:49:32 +02:00
parent 1afaea2d00
commit e065f5892d

4
app.py
View File

@@ -95,8 +95,6 @@ def finalize_response(response):
if response.status_code >= 400:
response.headers["Cache-Control"] = "no-store"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "0"
return response
if path.startswith("/static/"):
@@ -109,8 +107,6 @@ def finalize_response(response):
if path == "/":
response.headers["Cache-Control"] = "private, no-store"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "0"
return response
return response