Created
January 21, 2014 19:27
-
-
Save vajradog/8546563 to your computer and use it in GitHub Desktop.
Rack-zippy replaces the ActionDispatch::Static middleware used by Rails, which is not capable of serving the gzipped assets created by the rake assets:precompile task. rack-zippy will serve non-gzipped assets where they are not available or not supported by the requesting client.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'rack-zippy' | |
bundle install | |
Add this line to config/application.rb | |
config.middleware.swap(ActionDispatch::Static, Rack::Zippy::AssetServer) | |
Push to Heroku and you’re done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment