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 Answer
1
Accepted Answer

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
EXPERT
answered a year ago
  • It does; thank you this worked

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions