5 ms·
I use a static site generator (Hakyll) and deploy directly to S3. It's a pretty awesome system. I also used to use CloudFront as a CDN. I gave up because inval
by tikhonj 13y ago
I use a static site generator (Hakyll) and deploy directly to S3. It's a pretty awesome system.
I also used to use CloudFront as a CDN. I gave up because invalidating the cache was a bit tedious. I should start using it again for the assets that usually don't change like fonts. It's really not difficult; it was just inconvenient because I was using it for things like text that I updated constantly.
- philip1209 13y agoI use Jekyll and deploy to S3 too - combining it with Cloudflare provides an easier partial-CDN and some tools like 301 redirects that S3 doesn't provide out of the box: http://www.brouhaha.io/practical-jekyll/ http://www.brouhaha.io/practical-jekyll/
- Smudge 13y agoI've considered hosting my assets on a separate domain (e.g. assets.mydomain.com) because, in theory, browsers will better be able to parallelize the downloads. It sounds like this same approach would make your CloudFront setup a bit easier to manage.