开发者

How to serve GZipped assets with Jammit + Heroku + Cloudfront

开发者 https://www.devze.com 2023-02-25 19:15 出处:网络
I have made a webapp and deployed it to Heroku in Rails 2.3 I have also compressed all the files and uploaded to Cloudfront.

I have made a webapp and deployed it to Heroku in Rails 2.3

I have also compressed all the files and uploaded to Cloudfront.

Now Heroku is serving al开发者_高级运维l the static assets correctly but not the .gz version that Jammit created.

My PageSpeed would be excellent otherwise but due to the Gzip compressions it is 10 points short.

If anybody can tell me how I can leverage the GZip compression it would be of great help.

My site is at www.weddings9.com in case you want to check the gz assets.


I forked a great project called Cloudfront Asset host that helps deploy your assets to Cloudfront and use them within a rails app (including regular and GZipped versions):

https://github.com/wpeterson/cloudfront_asset_host

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号