- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
Hello, It appears that the objects in the cloudfront cache are not updating. There are two ways to clear the Cloudfront cache:
1- Work with a TTL (Timet to live) to decide how long an object will stay in the cloudfront cache until it expires and requires S3 the latest version of the object to be served. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html (See: Specifying the amount of time that CloudFront caches objects)
2- Directly invalidate the files in a specific path so that in the next request Cloudfront obtains the latest version of the file to S3. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html
I hope I have helped you and that you can solve the problem.
I notice that different content is being served depending on whether you use the custom domain name, or the cloudfront domain name. This would indicate that you may not have associated the custom domain name with the correct/intended distribution in CloudFront, despite having updated DNS.
The following article may help you if you need to migrate the custom domain name between distributions and/or accounts: https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-migrate-account/
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 7 Monaten
- AWS OFFICIALAktualisiert vor 2 Jahren