So you have an Amazon S3 hosted site with CloudFront caching in front of it? Nice work — it’s an affordable and highly scalable solution. One downside with this is that the cache, which helps makes your site so fast and cheap to run, is designed to hold on to files, possibly serving an old version to visitors.
That’s normally not a problem (it’s literally the point of a cache), but if you are making a lot of changes to the site and you want visitors to see them as soon as possible, then you will need to invalidate the cache and tell CloudFront to serve the most recent files.
Here is how you can do that…
Sal August 6th, 2018
Posted In: AWS
Tags: Amazon S3, Cache Invalidation, CloudFront, TTL
If you have followed CloudConfusing’s previous guides on hosting a website on S3 and then adding HTTPS to that site, forcing HTTPS is surprisingly easy. The whole process will take about two minutes per site and involves no risk factors, assuming your HTTPS setup is already functioning properly.
Sal April 28th, 2018
Posted In: AWS
Tags: CloudFront, Hosting, HSTS, HTTPS, Lambda, Lambda@Edge
So you setup build a static website hosted on Amazon S3 and you gave it a custom domain name. What’s next? HTTPS of course! Here’s a guide on how to do it in about 5 minutes. AWS makes SSL both free and easy, but it can be a little confusing the first time around.
Sal December 7th, 2017
Posted In: AWS
Tags: AWS, Certificate Manager, CloudFront, Hosting, HTTPS, Route 53, Static Website