fix caching

This commit is contained in:
coulisse 2023-02-12 10:54:54 +01:00
parent 0e6adda961
commit 667f12a7b8

View File

@ -471,7 +471,7 @@ def add_security_headers(resp):
resp.headers["X-Content-Type-Options"] = "nosniff" resp.headers["X-Content-Type-Options"] = "nosniff"
resp.headers["Referrer-Policy"] = "strict-origin-when-cross-origin" resp.headers["Referrer-Policy"] = "strict-origin-when-cross-origin"
#resp.headers["Cache-Control"] = "public, no-cache" #resp.headers["Cache-Control"] = "public, no-cache"
resp.headers['Cache-Control']='no-cache, no-store, must-revalidate' resp.headers['Cache-Control']='no-store'
resp.headers["Pragma"] = "no-cache" resp.headers["Pragma"] = "no-cache"