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 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Jahr
  • It does; thank you this worked

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen