[PATCH] Rack::Deflator should respect Cache-Control: no-transform
Reported by Ryan Tomayko | December 28th, 2008 @ 08:59 AM | in 0.9
Simple patch that makes Rack::Deflator do nothing when the 'no-transform' Cache-Control directive is specified on the response:
http://github.com/rtomayko/rack/...
This allows the origin app (or downstream middleware components) to disable Content-Encoding on a per-response basis.
Relevant spec text is RFC 2616 section 14.9.5:
Comments and changes to this ticket
-
Matt Todd December 28th, 2008 @ 09:07 AM
- Tag set to cache-control, deflator, gzip, rfc2616
Looks good to me.
-
chneukirchen (at gmail) December 28th, 2008 @ 01:09 PM
- State changed from new to resolved
Merged.
-
Ryan Tomayko December 29th, 2008 @ 10:48 AM
- Milestone set to 0.9
- Assigned user set to Ryan Tomayko
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป