summaryrefslogtreecommitdiff
path: root/django/utils/cache.py
diff options
context:
space:
mode:
authorMarkus Bertheau <mbertheau@gmail.com>2015-04-27 23:56:02 +0200
committerTim Graham <timograham@gmail.com>2015-04-28 12:07:02 -0400
commit4a438e400b7ce0ab9d0b6876196cbe8d620a4171 (patch)
treecce5d4a9271ad302eea2ff348b40b738f297dcf5 /django/utils/cache.py
parent82162b4499fc3b83b626c24386e4e5245191d13e (diff)
Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator.
Diffstat (limited to 'django/utils/cache.py')
-rw-r--r--django/utils/cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/cache.py b/django/utils/cache.py
index e48e159910..66d5e75e40 100644
--- a/django/utils/cache.py
+++ b/django/utils/cache.py
@@ -134,6 +134,7 @@ def add_never_cache_headers(response):
Adds headers to a response to indicate that a page should never be cached.
"""
patch_response_headers(response, cache_timeout=-1)
+ patch_cache_control(response, no_cache=True, no_store=True, must_revalidate=True)
def patch_vary_headers(response, newheaders):