S3 contains new html file but browser shows old html

0

Hello,

I have a site example.com that I deliver through cloudfront and an s3 bucket. I accessed a page called example.com/login.html on my browser, then updated the login.html file in a text editor, deleted the original login.html on s3, uploaded the new login.html to s3, cleared my browser cache and refreshed the page, but the browser showed the old login.html file.

I checked the view page source and the old html was there.

When I downloaded the login.html from s3 it was the new login.html file.

I checked this on multiple browsers, and they all rendered the old html.

How can s3 contain the new html file but the browsers show the old html?

1 個回答
1
已接受的答案

Does your website use CloudFront for CDN?
If used, CloudFront may cache html.
Try deleting the cache using the method in the following document.
https://repost.aws/knowledge-center/cloudfront-clear-cache

profile picture
專家
已回答 1 年前
  • It does; thank you this worked

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

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

回答問題指南