diff options
| author | Rinat Khabibiev <srenskiy@gmail.com> | 2016-09-15 11:10:21 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-09-28 09:09:09 -0400 |
| commit | 9e07a9b5feb30fe06fb23d0e77edd34f6c3f92b5 (patch) | |
| tree | 8e12ba737b2aa97bf959166858df5d4cdc06d6ee /docs/ref | |
| parent | 32031718320e1b4d708b15d8c67738e4c77c9bc7 (diff) | |
Fixed #27226 -- Removed patch_response_headers()'s setting of the Last-Modified header.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/utils.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 00ac7970d7..a9072f9442 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -53,7 +53,6 @@ need to distinguish caches by the ``Accept-language`` header. Adds some useful headers to the given ``HttpResponse`` object: * ``ETag`` - * ``Last-Modified`` * ``Expires`` * ``Cache-Control`` @@ -62,6 +61,10 @@ need to distinguish caches by the ``Accept-language`` header. ``cache_timeout`` is in seconds. The :setting:`CACHE_MIDDLEWARE_SECONDS` setting is used by default. + .. versionchanged:: 1.11 + + In older versions, the ``Last-Modified`` header was also set. + .. function:: add_never_cache_headers(response) Adds a ``Cache-Control: max-age=0, no-cache, no-store, must-revalidate`` |
