Slow webpage update

0

I am updating an existing static website in S3. If I upload a page with a new name, the result shows up immediately in a browser. If I replace a page with the same name, that page doesn't show up in my browser for more than 24 hours. How can I fix this so that I can replace an existing page and have it be immediately available to browsers?

已提問 2 年前檢視次數 277 次
1 個回答
0
已接受的答案

Hi There

Are you using CloudFront for your website with S3 as the origin? If so, the default cache TTL is 24 hours.

By default, CloudFront caches a response from Amazon S3 for 24 hours (Default TTL of 86,400 seconds). If your request lands at an edge location that served the Amazon S3 response within 24 hours, then CloudFront uses the cached response. This happens even if you updated the content in Amazon S3.

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

profile pictureAWS
專家
Matt-B
已回答 2 年前
profile pictureAWS
專家
已審閱 1 年前

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

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

回答問題指南