From 9fa6c737df0cbdc23702b849b793e7f3eb067b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=20S=C3=A1nchez?= Date: Thu, 26 Sep 2019 12:32:56 -0700 Subject: [PATCH] [3.0.x] Refs #15396 -- Mentioned full path to GZipMiddleware in documentation. Backport of f1d4a540b29c6766b988852bc302ac036a2d82e2 from master --- docs/ref/middleware.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt index d9f544737de..ec5584cc45a 100644 --- a/docs/ref/middleware.txt +++ b/docs/ref/middleware.txt @@ -95,8 +95,8 @@ GZip middleware .. _the BREACH paper (PDF): http://breachattack.com/resources/BREACH%20-%20SSL,%20gone%20in%2030%20seconds.pdf .. _breachattack.com: http://breachattack.com -Compresses content for browsers that understand GZip compression (all modern -browsers). +The ``django.middleware.gzip.GZipMiddleware`` compresses content for browsers +that understand GZip compression (all modern browsers). This middleware should be placed before any other middleware that need to read or write the response body so that compression happens afterward.