#36688: GzipMiddleware adds 'Vary: Accept-Encoding' unnecessarily
-----------------------------------------+------------------------------
               Reporter:  Adam Johnson   |          Owner:  Adam Johnson
                   Type:  Bug            |         Status:  assigned
              Component:  HTTP handling  |        Version:  dev
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------------
 `GZipMiddleware` has an early-return path when the compressed content is
 longer than the original, to save bandwidth. Unfortunately, in this case,
 it still adds `Vary: Accept-Encoding`, slightly degrading HTTP cache
 performance.

 The fix is to move the `patch_vary_headers()` call later.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36688>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019a1c465f82-1c22ef61-6d45-4411-99e8-96d038c720e2-000000%40eu-central-1.amazonses.com.

Reply via email to