Also set max-age=0 on all admin views

This commit is contained in:
Karl Hobley 2015-02-02 17:42:24 +00:00
parent 617aced004
commit 1049b3ff2d
2 changed files with 2 additions and 1 deletions

View file

@ -35,6 +35,7 @@ class TestHome(TestCase, WagtailTestUtils):
self.assertIn('private', response['Cache-Control'])
self.assertIn('no-cache', response['Cache-Control'])
self.assertIn('no-store', response['Cache-Control'])
self.assertIn('max-age=0', response['Cache-Control'])
class TestEditorHooks(TestCase, WagtailTestUtils):

View file

@ -121,5 +121,5 @@ urlpatterns += [
# Decorate all views with cache settings to prevent caching
urlpatterns = decorate_urlpatterns(urlpatterns,
cache_control(private=True, no_cache=True, no_store=True)
cache_control(private=True, no_cache=True, no_store=True, max_age=0)
)