So, I was working in a project with about 2MB of assets being loaded everytime without a good cache and this, my good friend, isn't cool. I was almost writing a Rack Middleware to handle this, when I found the
So, it's simple. Add this to your gemfile:
group :production do gem 'heroku-deflater' end
This will gzip every asset (except images) and (really) improve your application assets' load time.
Hope you liked it!
heroku-deflater repo here.