浏览代码

Fixed #18473 - Fixed a suggestion that GZipMiddleware needs to be first in the list of middleware.

Tim Graham 12 年之前
父节点
当前提交
3e0857041b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/ref/middleware.txt

+ 2 - 2
docs/ref/middleware.txt

@@ -93,8 +93,8 @@ GZip middleware
 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.
+This middleware should be placed before any other middleware that need to
+read or write the response body so that compression happens afterward.
 
 It will NOT compress content if any of the following are true: