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?

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ