how to update webpages of site hosted on aws s3?

Viewed 9785

After hosting website on s3, how can we make changes in text in its webpages. I deleted older html files from bucket and uploaded new files by same name with updated text in the code. But no changes were reflected after refreshing those webpages.

Is there is any other way to update webpages of a website already hosted on s3 ? If so would somebody please post steps here to make those updates ? TIA.

2 Answers

In case you are not using cloud-front, but just a normal static S3 website: check if your browser may be caching the pages.

Chrome at least does. So, updating the pages in S3 might not be visible until you clear the browser cache.

In chrome you can remove the cache as follows:

  • Open settings
  • Search for 'cache'
  • and remove pictures & files.
Related