From 9e07a9b5feb30fe06fb23d0e77edd34f6c3f92b5 Mon Sep 17 00:00:00 2001 From: Rinat Khabibiev Date: Thu, 15 Sep 2016 11:10:21 +0300 Subject: Fixed #27226 -- Removed patch_response_headers()'s setting of the Last-Modified header. --- docs/ref/utils.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/ref') 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`` -- cgit v1.3