AWS : Refresh CloudFront caches

Sometimes users face issue when latest content on S3 is not reflected via Cloudfront.

Solution is to invalidate objects.

Invalidating objects removes them from CloudFront edge caches. A faster and less expensive method is to use versioned object or directory names.

Go to Cloudfront

Click on Invalidations tab

Create Invalidation ID for all files (*)

Click on “invalidate”

All objects under “Distribution ID” of Cloudfront are refreshed and users will be able to view updated results.