From a289e7967907f47e8aba2b25e5f397af6ac7dac9 Mon Sep 17 00:00:00 2001 From: nsasaki128 Date: Tue, 25 Jun 2019 15:15:00 +0900 Subject: Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator. --- django/utils/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/utils/cache.py') 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): -- cgit v1.3