28 Jan '16, 3pm

Ember on S3 with CloudFront - Less Hash More Cache

Ember on S3 with CloudFront - Less Hash More Cache

Ember on S3 with CloudFront - Less Hash More Cache posted on January 28, 2016 and written by Micah Cooper and Taylor Mock in Ember How to host your ember application using Amazon S3 and Cloudfront and maintain your pretty URLs without having to redirect to a hashed url. We like deploying our Ember app to S3 with ember-cli-deploy . While cheap and fast, there is a caveat to this approach: When a user goes directly to a page on your Ember site, say https://emberweekend.com/episodes , S3 doesn't have the capacity to serve your index.html file. We initially solved this by setting redirect rules in our s3 static web hosting settings: <RoutingRules> <RoutingRule> <Condition> <HttpErrorCodeReturnedEquals> 404</HttpErrorCodeReturnedEquals> </Condition> <Redirect> <HostName> emberweekend.com</HostName> <ReplaceKeyPrefixWith> #/</ReplaceKeyPrefixWith> </Redirect> </RoutingRule> </Ro...

Full article: https://hashrocket.com/blog/posts/ember-on-s3-with-cloudf...

Tweets

Feed the World by Wasting Less Food

spectrum.ieee.org 27 Jan '16, 8pm

Infographic: Erik Vrielink. Sources: Food and Agriculture Organization of the United Nations; U.S. Department of Agricultu...

"Recharging is markedly simpler, because it is ...

mercedes-benz.com 28 Jan '16, 10pm

Saxena: Market data shows that the adoption rate of EVs is on par if not slightly higher than it was for hybrids. They wil...

#digitalmarketing today is more about science, ...

semrush.com 30 Jan '16, 9am

But there’s a critical place for all of you who are not so savvy. The folks who draw stick figures or have trouble writing...