mirror of
https://github.com/coulisse/spiderweb.git
synced 2024-09-21 07:27:09 +00:00
fix caching
This commit is contained in:
parent
96339590e5
commit
0e6adda961
@ -470,9 +470,12 @@ def add_security_headers(resp):
|
||||
resp.headers["X-Frame-Options"] = "SAMEORIGIN"
|
||||
resp.headers["X-Content-Type-Options"] = "nosniff"
|
||||
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["Pragma"] = "no-cache"
|
||||
|
||||
|
||||
|
||||
resp.headers["Content-Security-Policy"] = "\
|
||||
default-src 'self';\
|
||||
script-src 'self' cdnjs.cloudflare.com cdn.jsdelivr.net 'nonce-"+inline_script_nonce+"';\
|
||||
|
Loading…
Reference in New Issue
Block a user