AWS cloudfront not updating on update of files in S3

Jigar Tank picture Jigar Tank · May 10, 2015 · Viewed 23.2k times · Source

I created a distribution in cloudfront using my files on S3. It worked fine and all my files were available. But today I updated my files on S3 and tried to access them via Cloudfront, but it still gave old files.

What am I missing ?

Answer

jpaljasma picture jpaljasma · Oct 21, 2015

You should invalidate your objects in CloudFront distribution cache. Back in the old days you'd have to do it 1 file at a time, now you can do it wildcard, e.g. /images/*

https://aws.amazon.com/about-aws/whats-new/2015/05/amazon-cloudfront-makes-it-easier-to-invalidate-multiple-objects/