Code

Opened 7 years ago

Closed 7 years ago

#4946 closed (fixed)

Improvements to GZIP middleware to improve performance

Reported by: colin@… Owned by: mtredinnick
Component: HTTP handling Version: master
Severity: Keywords: gzip middleware performance
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (1)

gzip_enhancements.patch (1.4 KB) - added by colin@… 7 years ago.
Patch to enhance gzip middleware.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by colin@…

Patch to enhance gzip middleware.

comment:1 Changed 7 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

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

comment:2 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.