mlandauer / thats-camping-elm

Find campsites near you
https://thatscamping.org
GNU General Public License v3.0
5 stars 1 forks source link

Drop use of hashbang urls #82

Closed mlandauer closed 7 years ago

mlandauer commented 7 years ago

With Cloudfront we can tell it to funnel all requests through a single file (by setting the error file to be the same as the index file) and so we don't have to use the hashbang urls if we don't want to.

mlandauer commented 7 years ago

Need to make sure that Cloudfront also handled the 404 errors by sending back a 200 otherwise the appcache doesn't cache and the app doesn't work offline!

This explains how: https://keita.blog/2015/11/24/hosting-a-single-page-app-on-s3-with-proper-urls/

This is all done and deployed now