summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/utils.txt5
-rw-r--r--docs/releases/3.1.txt5
-rw-r--r--docs/topics/cache.txt1
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).