mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Refs #26447 -- Removed the USE_ETAGS setting per deprecation timeline.
This commit is contained in:
parent
4502489a46
commit
48d57788ee
10 changed files with 8 additions and 203 deletions
|
@ -61,23 +61,12 @@ Adds a few conveniences for perfectionists:
|
|||
indexer would treat them as separate URLs -- so it's best practice to
|
||||
normalize URLs.
|
||||
|
||||
* Handles ETags based on the :setting:`USE_ETAGS` setting. If
|
||||
:setting:`USE_ETAGS` is set to ``True``, Django will calculate an ETag
|
||||
for each request by MD5-hashing the page content, and it'll take care of
|
||||
sending ``Not Modified`` responses, if appropriate.
|
||||
|
||||
* Sets the ``Content-Length`` header for non-streaming responses.
|
||||
|
||||
.. versionchanged:: 1.11
|
||||
|
||||
Older versions didn't set the ``Content-Length`` header.
|
||||
|
||||
.. deprecated:: 1.11
|
||||
|
||||
The :setting:`USE_ETAGS` setting is deprecated in favor of using
|
||||
:class:`~django.middleware.http.ConditionalGetMiddleware` for ETag
|
||||
processing.
|
||||
|
||||
.. attribute:: CommonMiddleware.response_redirect_class
|
||||
|
||||
Defaults to :class:`~django.http.HttpResponsePermanentRedirect`. Subclass
|
||||
|
@ -472,11 +461,6 @@ Here are some hints about the ordering of various Django middleware classes:
|
|||
|
||||
After ``UpdateCacheMiddleware``: Modifies ``Vary`` header.
|
||||
|
||||
#. :class:`~django.middleware.http.ConditionalGetMiddleware`
|
||||
|
||||
Before ``CommonMiddleware``: uses its ``ETag`` header when
|
||||
:setting:`USE_ETAGS` = ``True``.
|
||||
|
||||
#. :class:`~django.contrib.sessions.middleware.SessionMiddleware`
|
||||
|
||||
After ``UpdateCacheMiddleware``: Modifies ``Vary`` header.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue