summaryrefslogtreecommitdiff
path: root/docs/ref
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 /docs/ref
parent8454f6dea49dddb821bfcb7569ea222bb487dfd1 (diff)
Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/utils.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index b36282048f..3d3dbab2fe 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -62,8 +62,13 @@ need to distinguish caches by the ``Accept-language`` header.
.. function:: add_never_cache_headers(response)
- Adds a ``Cache-Control: max-age=0, no-cache, no-store, must-revalidate``
- header to a response to indicate that a page should never be cached.
+ Adds a ``Cache-Control: max-age=0, no-cache, no-store, must-revalidate,
+ private`` header to a response to indicate that a page should never be
+ cached.
+
+ .. versionchanged:: 3.0
+
+ ``private`` directive was added.
.. function:: patch_vary_headers(response, newheaders)