diff options
| author | Tim Graham <timograham@gmail.com> | 2017-11-08 10:02:30 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-11-14 12:01:24 -0500 |
| commit | bc95314ca6af0b5e993ae07fdc7d8e6166d3b8ca (patch) | |
| tree | 0dea4b1567479d80b3ae67b855f5ed62703c7641 /docs/ref | |
| parent | 23bf4ad87f86f44a5ecf9aea722ced76fe7b7fdf (diff) | |
Fixed #28786 -- Doc'd middleware ordering considerations due to CommonMiddleware setting Content-Length.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/middleware.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt index cfa6a77665..35407493f7 100644 --- a/docs/ref/middleware.txt +++ b/docs/ref/middleware.txt @@ -471,6 +471,10 @@ 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 sets the + ``Content-Length`` header). A middleware that appears before + ``CommonMiddleware`` and changes the response must reset ``Content-Length``. + Close to the top: it redirects when :setting:`APPEND_SLASH` or :setting:`PREPEND_WWW` are set to ``True``. |
