tricknotes / ember-cli-rails

Unify your EmberCLI and Rails Workflows
http://thoughtbot.github.io/ember-cli-rails/
MIT License
713 stars 205 forks source link

Gzipped assets on Heroku #487

Closed jdurand closed 7 years ago

jdurand commented 8 years ago

I tried to gzip css & js assets with https://github.com/gdub22/ember-cli-gzip without success. At best I was able to "gzip" the files with the .css and .js extensions but they are served without the Content-Encoding:gzip header that browsers seem to need in order to deliver the files properly.

Is there an easy ember-cli-rails config to achieve this?

Rails: 4.2.7.1 ember-cli-rails: 0.8.0 ember-cli-rails-addon: ~0.8.0 Deployment: Heroku

plicjo commented 7 years ago

I was able to get Rails to serve the gzipped assets with Heroku Deflater

jdurand commented 7 years ago

I'm deploying my assets with CloudFront; I managed to go around this by ticking the "compress objects automatically" option in there.