Home > OS >  Data is not refreshing after new publish AWS site
Data is not refreshing after new publish AWS site

Time:05-24

I use DNS of a Hosted Zone of Route 53 on a Godaddy domain.

Also, I create an AWS certificate, CloudFront distribution, and a S3 Bucket for my static website.

So I have my site with an SSL certificate working correctly.

The issue starts when I need to make a change on the site, it does not refresh the content on the domain name, but if I use bucket endpont: http://....s3-website-us-west-1.amazonaws.com it has the latest build.

How can I refresh data inside my custom domain name?

CodePudding user response:

Because you are using CloudFront every time you change your website you should run an invalidation. To do that you will need to do the next:

  • Go to your CloudFront distribution cloudfront distribution

  • Then go to Invalidations invalidation option

  • Then click on "Create Invalidation" and add this "/*" enter image description here

  • And finally click on "Create Invalidation"

  • Then you should be able to see the changes on your browser, also try to clean your cache or see your website on a Private Tab

  • Related