1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #27226 -- Removed patch_response_headers()'s setting of the Last-Modified header.

This commit is contained in:
Rinat Khabibiev
2016-09-15 11:10:21 +03:00
committed by Tim Graham
parent 3203171832
commit 9e07a9b5fe
4 changed files with 18 additions and 8 deletions

View File

@@ -539,6 +539,14 @@ Miscellaneous
:rfc:`7232` Conditional Requests specification rather than the older
:rfc:`2616`.
* :func:`~django.utils.cache.patch_response_headers` no longer adds a
``Last-Modified`` header. According to the :rfc:`7234#section-4.2.2`, this
header is useless alongside other caching headers that provide an explicit
expiration time, e.g. ``Expires`` or ``Cache-Control``.
:class:`~django.middleware.cache.UpdateCacheMiddleware` and
:func:`~django.utils.cache.add_never_cache_headers` call
``patch_response_headers()`` and therefore are also affected by this change.
* In the admin templates, ``<p class="help">`` is replaced with a ``<div>`` tag
to allow including lists inside help text.