diff options
| author | Tim Graham <timograham@gmail.com> | 2017-11-11 20:45:17 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-11-11 20:45:17 -0500 |
| commit | 8f8a4d10d34c1fd6104b08efd16c5c377c142865 (patch) | |
| tree | d4a486e591f8fcad3640bdc40a7b63ed4f4f4227 /docs | |
| parent | 1907fc9b1292a55f1b8d54f4dbcdbda16bbb36c1 (diff) | |
Refs #26447 -- Removed outdated ETag comment in CommonMiddleware.
Follow up to 48d57788ee56811fa77cd37b9edf40535f82d87e.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/middleware.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt index f4d5288ed7..cfa6a77665 100644 --- a/docs/ref/middleware.txt +++ b/docs/ref/middleware.txt @@ -456,6 +456,14 @@ Here are some hints about the ordering of various Django middleware classes: After ``UpdateCacheMiddleware``: Modifies ``Vary`` header. +#. :class:`~django.middleware.http.ConditionalGetMiddleware` + + Before any middleware that may change the response (it sets the ``ETag`` + header). + + After ``GZipMiddleware`` so it won't calculate an ``ETag`` header on gzipped + contents. + #. :class:`~django.middleware.locale.LocaleMiddleware` One of the topmost, after ``SessionMiddleware`` (uses session data) and @@ -463,11 +471,6 @@ Here are some hints about the ordering of various Django middleware classes: #. :class:`~django.middleware.common.CommonMiddleware` - Before any middleware that may change the response (it calculates ``ETags``). - - After ``GZipMiddleware`` so it won't calculate an ``ETag`` header on gzipped - contents. - Close to the top: it redirects when :setting:`APPEND_SLASH` or :setting:`PREPEND_WWW` are set to ``True``. |
