Last Updated: February 25, 2016
·
1.382K
· jcuervo

Serving Compressed Assets via CloudFront to a Heroku Rails App

Follow through Asset Sync's instructions to configure and serve your assets from CloudFront (AWS account required and some more steps to config S3 and CloudFront) if you haven't prepped your app. Make sure that you have the "config.gzip_compression" option to "true".

And simply follow through the Heroku Rails Deflate gem's instructions.

Asset Sync: https://github.com/rumblelabs/asset_sync

Heroku Rails Deflate: https://github.com/mattolson/heroku_rails_deflate

NOTE: I'm on Rails 3.2.16 and Ruby 2.0.0