diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/utils.txt | 9 | ||||
| -rw-r--r-- | docs/releases/3.0.txt | 4 | ||||
| -rw-r--r-- | docs/topics/http/decorators.txt | 8 |
3 files changed, 16 insertions, 5 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) diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt index 62c6080cf7..4c33e7c309 100644 --- a/docs/releases/3.0.txt +++ b/docs/releases/3.0.txt @@ -167,7 +167,9 @@ Minor features Cache ~~~~~ -* ... +* :func:`~django.utils.cache.add_never_cache_headers` and + :func:`~django.views.decorators.cache.never_cache` now adds ``private`` + directive to a ``Cache-Control`` header. CSRF ~~~~ diff --git a/docs/topics/http/decorators.txt b/docs/topics/http/decorators.txt index b5145919ab..e1ec2c6028 100644 --- a/docs/topics/http/decorators.txt +++ b/docs/topics/http/decorators.txt @@ -119,5 +119,9 @@ client-side caching. .. function:: never_cache(view_func) This decorator 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. + must-revalidate, private`` header to a response to indicate that a page + should never be cached. + + .. versionchanged:: 3.0 + + ``private`` directive was added. |
