mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
committed by
Mariusz Felisiak
parent
2a6f45e08e
commit
ed112fadc1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user