0

I changed my index.htm page, close down chrome and when I reopen it's still displaying the old page. I know I can hit F5 but that's no good as users won’t know to do this. How can force chrome to stop caching the old page for all users without having to manually click F5?

tfa
  • 1,104
  • 10
  • 16

2 Answers2

0

Have a look at this post:

Disabling Chrome cache for website development

To clear Google Chrome Cache: Go to Chrome Settings (top right corner of browser) > History > History > Clear Browsing Data > (checkmark) Cached images and files.

Also make sure the address bar (URL) is pointing to the correct file you are modifying.

Community
  • 1
  • 1
kuzaxe
  • 37
  • 8
  • I have a website that I upload the new HTML page I need the users to get the new index.html. I know how to manually clear cache or refresh a page but the users wont know to do this – tfa Mar 25 '16 at 18:45
  • @tfa I see. If the users have internet connection, shouldn't the updated website automatically load the changes for the users? Apologies, I misread your question before! – kuzaxe Mar 25 '16 at 18:53
0

I figured out how to do it in code going forward, a refresh will occur once for every visit. Thanks for you help.

if (!sessionStorage.Refreshed) {
  $window.location.reload();
  sessionStorage.Refreshed = true;
}
tfa
  • 1,104
  • 10
  • 16