Update all main pages to no-store
This commit is contained in:
parent
4d71da7ae1
commit
24b5d08f9b
@ -23,7 +23,7 @@ class HeadersMiddleware:
|
|||||||
)
|
)
|
||||||
response = self.get_response(request)
|
response = self.get_response(request)
|
||||||
if "Cache-Control" not in response.headers:
|
if "Cache-Control" not in response.headers:
|
||||||
response.headers["Cache-Control"] = "private, max-age=0"
|
response.headers["Cache-Control"] = "no-store, max-age=0"
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user