fix headerow
This commit is contained in:
1 parent
9b131824e8
commit
419d01f74d
2 files changed
+19
No files matched your search
@@ -1417,6 +1417,13 @@ def require_system_password():
|
||||
|
||||
@app.after_request
|
||||
def apply_headers(response):
|
||||
|
||||
if request.path == "/expenses_data":
|
||||
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
|
||||
response.headers["Pragma"] = "no-cache"
|
||||
response.headers["Expires"] = "0"
|
||||
return response
|
||||
|
||||
if request.path.startswith(("/static/", "/uploads/")):
|
||||
response.headers["Vary"] = "Accept-Encoding"
|
||||
return response
|
||||
|
||||
Reference in new issue
Block a user