Skip to content

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

marcofognog opened this Issue Oct 11, 2013 · 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.

jjb commented Nov 24, 2013

also see #457

@raggi raggi added this to the Rack 1.6 milestone Jul 12, 2014
@raggi raggi closed this Aug 3, 2014
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.