Search code examples
amazon-s3deploymentamazon-cloudfront

After deploy taking time to reflect changes


I have a project which is built-in ReactJs. and I am using s3 and CloudFront for deployment. I am facing an issue whenever I deploy code after deployment it takes too much time to reflect changes. sometimes I have to manually clear browser cookies for the latest changes. Do I need to configure S3 or CloudFront settings?


Solution

  • Follow this steps:

    1. Go to cloudfront :
    2. Do invalidation of objects
    3. Create entry /*

    enter image description here

    Reference : https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serving-outdated-content-s3/