I put this pull request together to help apps on heroku serve gzipped assets generated by the rails asset pipeline.
https://github.com/rails/rails/pull/8669/files Previously, I was using Rack::Deflate to compress my javascript and css files. However, I had to install Rack::Default ahead of ActionDispatch::Static, which means all my images and swfs were also being compressed. This is undesirable, as those assets are already compressed. This patch will have ActionDispatch::Static serve the pre-gzipped assets that the Rails asset compiler already generates. Rack::Deflate can then be moved down the middleware stack after ActionDispatch::Static (where it belongs). I think this is the right approach, but I could use some feedback. Also if this looks useful, please leave a +1 on the pull request. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
