Route53 custom domain not updating content

0

Hey!

I am using a s3 bucket to serve a static site. I update my bucket via a bitbucket pipeline when change are made on the main branch. The s3 bucket domain name is serving the correct content and updating accordingly.

I am using cloudfront to manage my custom domain (via route53) & my SSL cert(via AWS cert manager)

I have set up an invalidation on cloudfront for all content ( i.e '/*') which is working correctly. For example the cloudfront distribution domain name is serving the correct content and updating accordingly.

However, the custom domain name (Alternate domain name (CNAME)) is not updating when S3 and cloudfront are??

Is my custom domain also caching somewhere, and I need to make changes to the configuration?

Thanks

  • Hi! We are facing the same issue. Did you manage to sort it out? If yes, can you please let us know, how?

已提問 2 年前檢視次數 483 次
2 個答案
0

It sounds like connecting to the "d123444.cloudfront.net" domain shows correct content. However, using custom domain name to connect shows outdated content. In CloudFront distribution -> behaviors, what caching policy or legacy setting configured? Is it containing host header?

AWS
V
已回答 2 年前
0

Hey. The cloudfront distribution behaviour is showing:

Cache policy and origin request policy (recommended)

Cache policy
CachingOpyimized
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南