Update app.py
This commit is contained in:
4
app.py
4
app.py
@@ -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
|
||||
|
Reference in New Issue
Block a user