Django

Code

Ticket #4946 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Improvements to GZIP middleware to improve performance

Reported by: colin@owlfish.com Assigned to: mtredinnick
Milestone: Component: HTTP handling
Version: SVN Keywords: gzip middleware performance
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

I've modified the gzip middleware so that it will only compress the response for HTTP status code 200 and if the response body is greater than 200 bytes long. This improves behavior when used in conjunction with E-TAGS and CommonMiddleware? and avoids unnecessary work.

The patch also includes updates to the documentation for this middleware.

Attachments

gzip_enhancements.patch (1.4 kB) - added by colin@owlfish.com on 07/21/07 06:18:34.
Patch to enhance gzip middleware.

Change History

07/21/07 06:18:34 changed by colin@owlfish.com

  • attachment gzip_enhancements.patch added.

Patch to enhance gzip middleware.

07/21/07 08:58:08 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Ready for checkin.
  • needs_tests changed.
  • needs_docs changed.

good idea! Although - note the typo in middleware.txt, "execute" should be "executed"

08/12/07 07:29:25 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [5875]) Fixed #4946 -- Added some small improvements to Gzip middleware. Thanks, colin@owlfish.com.


Add/Change #4946 (Improvements to GZIP middleware to improve performance)




Change Properties
Action