Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
marcofognog opened this Issue · 2 comments

4 participants

@marcofognog

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?

@jbaudanza

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

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.