summaryrefslogtreecommitdiff
path: root/django/utils/cache.py
diff options
context:
space:
mode:
authornsasaki128 <naoki.robert.sasaki@gmail.com>2019-06-25 15:15:00 +0900
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-06-26 09:25:24 +0200
commita289e7967907f47e8aba2b25e5f397af6ac7dac9 (patch)
treef292fb0c21e5014058b0410c7d08b57bc5834e60 /django/utils/cache.py
parent8454f6dea49dddb821bfcb7569ea222bb487dfd1 (diff)
Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator.
Diffstat (limited to 'django/utils/cache.py')
-rw-r--r--django/utils/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/cache.py b/django/utils/cache.py
index 1a469f9589..a804604642 100644
--- a/django/utils/cache.py
+++ b/django/utils/cache.py
@@ -250,7 +250,7 @@ def add_never_cache_headers(response):
Add 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)
+ patch_cache_control(response, no_cache=True, no_store=True, must_revalidate=True, private=True)
def patch_vary_headers(response, newheaders):