mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
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
This commit is contained in:
parent
2a6f45e08e
commit
ed112fadc1
5 changed files with 43 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue