mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator.
This commit is contained in:
committed by
Mariusz Felisiak
parent
8454f6dea4
commit
a289e79679
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user