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 Resposta
1
Resposta aceita

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
ESPECIALISTA
respondido há um ano
  • It does; thank you this worked

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas