diff options
| author | mgaligniana <marcelogaligniana@gmail.com> | 2021-12-10 08:26:32 -0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-13 15:34:19 +0100 |
| commit | 669dcefc04837c35fc2ec5ce906d84397005965d (patch) | |
| tree | 70fc26fd7c4720eb06fb7e0b823c8c606d7f7e8c /docs/ref/utils.txt | |
| parent | e61abab6e0d57c333289790496f358bb8ee4c565 (diff) | |
Fixed #33338 -- Doc'd that never_cache() decorator set Expires header.
Diffstat (limited to 'docs/ref/utils.txt')
| -rw-r--r-- | docs/ref/utils.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 38be571a9e..0b68411e27 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -62,10 +62,14 @@ need to distinguish caches by the ``Accept-language`` header. .. function:: add_never_cache_headers(response) + Adds an ``Expires`` header to the current date/time. + 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. + Each header is only added if it isn't already set. + .. function:: patch_vary_headers(response, newheaders) Adds (or updates) the ``Vary`` header in the given ``HttpResponse`` object. |
