summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-08-12 12:29:25 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-08-12 12:29:25 +0000
commitc050b6a25acff020fd60f2f528eb019615e00203 (patch)
treedafca02b3036f4d66556953684de8b807444015c /docs
parent3757f30c99838783402b54d1cfd41958d1493aad (diff)
Fixed #4946 -- Added some small improvements to Gzip middleware. Thanks, colin@owlfish.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/middleware.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/middleware.txt b/docs/middleware.txt
index 533f1ccede..63ba8c6999 100644
--- a/docs/middleware.txt
+++ b/docs/middleware.txt
@@ -91,6 +91,12 @@ django.middleware.gzip.GZipMiddleware
Compresses content for browsers that understand gzip compression (all modern
browsers).
+It is suggested to place this first in the middleware list, so that the
+compression of the response content is the last thing that happens. Will not
+compress content bodies less than 200 bytes long, when the response code is
+something other than 200, Javascript files (for IE compatibitility), or
+responses that have the ``Content-Encoding`` header already specified.
+
django.middleware.http.ConditionalGetMiddleware
-----------------------------------------------