Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Serving gzipped assets from Rack::Static #478

Closed
jbaudanza opened this Issue · 2 comments

2 participants

@jbaudanza

I am working on a pull request for ActionDispatch::Static that will allow it to serve up the gzipped assets that are generated by Sprockets.

rails/rails#8669

It's been suggested that this functionality might be better placed in Rack::Static instead. In this scenario, ActionDispatch::Static would be factored down to a small shim around Rack::Static

What do you guys think? This seems like functionality that would be useful to anyone serving static assets from Rack, not just with Rails.

@raggi
Owner

Yup' a PR for that would be appreciated, although see if you can do it with or by extending the rules system that was just added in master. I'd love to try and keep static relatively simple, lest we end up having half a file server in an interfacing library :-)

@jbaudanza

pull request attached here #479

@jbaudanza jbaudanza 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.