mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #26447 -- Deprecated settings.USE_ETAGS in favor of ConditionalGetMiddleware.
This commit is contained in:
parent
46a3d7604e
commit
a840710e1e
15 changed files with 126 additions and 24 deletions
|
@ -327,6 +327,9 @@ Requests and Responses
|
|||
* Added the :setting:`SECURE_HSTS_PRELOAD` setting to allow appending the
|
||||
``preload`` directive to the ``Strict-Transport-Security`` header.
|
||||
|
||||
* :class:`~django.middleware.http.ConditionalGetMiddleware` now adds the
|
||||
``ETag`` header to responses.
|
||||
|
||||
Serialization
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
@ -633,3 +636,9 @@ Miscellaneous
|
|||
* :func:`~django.contrib.auth.authenticate` now passes a ``request`` argument
|
||||
to the ``authenticate()`` method of authentication backends. Support for
|
||||
methods that don't accept ``request`` will be removed in Django 2.1.
|
||||
|
||||
* The ``USE_ETAGS`` setting is deprecated in favor of
|
||||
:class:`~django.middleware.http.ConditionalGetMiddleware` which now adds the
|
||||
``ETag`` header to responses regardless of the setting. ``CommonMiddleware``
|
||||
and ``django.utils.cache.patch_response_headers()`` will no longer set ETags
|
||||
when the deprecation ends.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue