mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Added cache control header to response.
This commit is contained in:
@@ -157,6 +157,10 @@ def useful_headers_after_request(response):
|
|||||||
response.headers.add('X-XSS-Protection', '1; mode=block')
|
response.headers.add('X-XSS-Protection', '1; mode=block')
|
||||||
response.headers.add('Content-Security-Policy',
|
response.headers.add('Content-Security-Policy',
|
||||||
"default-src 'self' 'unsafe-inline'; font-src 'self' data:;") # noqa
|
"default-src 'self' 'unsafe-inline'; font-src 'self' data:;") # noqa
|
||||||
|
if 'Cache-Control' in response.headers:
|
||||||
|
del response.headers['Cache-Control']
|
||||||
|
response.headers.add(
|
||||||
|
'Cache-Control', 'no-store, max-age=43200, no-cache, private, must-revalidate')
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user