diff options
| author | Kevin Christopher Henry <k@severian.com> | 2016-10-11 03:42:00 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-13 14:22:54 -0400 |
| commit | ad332e5ca9503bba2e14cc8c3ca675eed56d72bc (patch) | |
| tree | 4cf3ea2b0c921d10cfe001702227b9eb86bf6f57 /docs | |
| parent | 816eae35084a69a76e45439df20f69c7e0ccaef9 (diff) | |
Refs #19705 -- Made GZipMiddleware make ETags weak.
Django's conditional request processing can now produce 304 Not Modified
responses for content that is subject to compression.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/middleware.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt index 432f5437ff..d007d252f5 100644 --- a/docs/ref/middleware.txt +++ b/docs/ref/middleware.txt @@ -155,6 +155,9 @@ It will NOT compress content if any of the following are true: * The request (the browser) hasn't sent an ``Accept-Encoding`` header containing ``gzip``. +If the response has an ``ETag`` header, the ETag is made weak to comply with +:rfc:`7232#section-2.1`. + You can apply GZip compression to individual views using the :func:`~django.views.decorators.gzip.gzip_page()` decorator. |
