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 Respuesta
1
Respuesta aceptada

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
EXPERTO
respondido hace un año
  • It does; thank you this worked

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas