mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator.
This commit is contained in:
parent
8454f6dea4
commit
a289e79679
5 changed files with 18 additions and 7 deletions
|
@ -119,5 +119,9 @@ client-side caching.
|
|||
.. function:: never_cache(view_func)
|
||||
|
||||
This decorator 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.
|
||||
must-revalidate, private`` header to a response to indicate that a page
|
||||
should never be cached.
|
||||
|
||||
.. versionchanged:: 3.0
|
||||
|
||||
``private`` directive was added.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue