I have deployed my React app on s3. I am using Cloudfront to use a certificate and reach my s3 bucket through HTTPS.
After struggling setting it all up, I managed to set it all up, it is now working well.
Now I updated my project, created a new version of bundle.js, uploaded it to s3.
My issue now is that mydomain.com points to the V1 of bundle.js
So what I tried to dig up a little bit more, and here is what I found:
mydomain.compoints to V1xxxxx.cloudfront.netpoints to V1mydomain.com.s3-website-eu-west-1.amazonaws.compoints to V2
So my guess is that for some reason, cloudfront points to the V1, but why ? Is there some cache somewhere in there ?
Here is the config, in case it helps:
Route53Type Apoints toxxxxxx.cloudfront.netcloudfrontdomain isxxxxxx.cloudfront.netcloudfrontCNAMESaremydomain.comandwww.mydomain.comcloudfrontorigin domain name and pathismydomain.com.s3-website-eu-west-1.amazonaws.coms3 bucketismydomain.com
PS : Just to double check that the issue was not only coming from bundle.js, I deleted the background image from the bucket, but somehow, it is still found and used when accessing mydomain.com (so showing the V1)
