mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-14 20:10:59 +00:00
Also set max-age=0 on all admin views
This commit is contained in:
parent
617aced004
commit
1049b3ff2d
2 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue