diff options
| author | Flavio Curella <flavio.curella@gmail.com> | 2019-09-26 13:58:14 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-10 19:30:51 +0200 |
| commit | ed112fadc1cfa400dbee6080bf82fd7536ea4c72 (patch) | |
| tree | dc96114d797f815577a61c12abc899dbb8307277 /docs | |
| parent | 2a6f45e08e8cb8c7e5157915c378b453109424d2 (diff) | |
Fixed #23755 -- Added support for multiple field names in the no-cache Cache-Control directive to patch_cache_control().
https://tools.ietf.org/html/rfc7234#section-5.2.2.2
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/utils.txt | 5 | ||||
| -rw-r--r-- | docs/releases/3.1.txt | 5 | ||||
| -rw-r--r-- | docs/topics/cache.txt | 1 |
3 files changed, 10 insertions, 1 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 63db48b98f..4f174c5efe 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -43,6 +43,11 @@ need to distinguish caches by the ``Accept-language`` header. * All other parameters are added with their value, after applying ``str()`` to it. + .. versionchanged:: 3.1 + + Support for multiple field names in the ``no-cache`` directive was + added. + .. function:: get_max_age(response) Returns the max-age from the response Cache-Control header as an integer diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index 7fec7246d5..a92c18fc78 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -104,7 +104,10 @@ Minor features Cache ~~~~~ -* ... +* The :func:`~django.views.decorators.cache.cache_control` decorator and + :func:`~django.utils.cache.patch_cache_control` method now support multiple + field names in the ``no-cache`` directive for the ``Cache-Control`` header, + according to :rfc:`7234#section-5.2.2.2`. CSRF ~~~~ diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index 2bd25afd42..ce030d4221 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -1277,6 +1277,7 @@ Here are some more examples: * ``no_transform=True`` * ``must_revalidate=True`` * ``stale_while_revalidate=num_seconds`` +* ``no_cache=True`` The full list of known directives can be found in the `IANA registry`_ (note that not all of them apply to responses). |
