mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05: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('Content-Security-Policy',
|
||||
"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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user