Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Rack::Deflater is compressing already compressed content. #612

marcofognog opened this Issue · 2 comments

4 participants


Rack::Deflater is compressing already compressed content like png and jpg images (which is waste of time and resources). In other servers we can selectively compress the content, and I missed this on rack today. What do you guys think?


I usually place Rack::Deflater downstream of any static asset server for this reason.

If you need to compress static assets, I have an open PR #479 that changes Rack::File to serve precompressed gzipped assets from the filesystem, if present. If you think that would be useful, throw it a +1.


also see #457

@raggi raggi added this to the Rack 1.6 milestone
@raggi raggi closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.