Last Updated: February 25, 2016
· 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:

Heroku Rails Deflate:

NOTE: I'm on Rails 3.2.16 and Ruby 2.0.0