Google-chrome – How to force Chrome to load a fresh copy of a page

browserbrowser-cachegoogle-chromeredirection

I am developing a new website, and I originally had a Url redirect on the domain that took users to an existing site in order to avoid a parked domain notice showing up. When it came to put the first version of the site up on the web, I removed the redirect and waited a good 48 hours (for the DNS to catch up with the change). But even after this wait, every time I tried navigating to the domain, it redirected anyway. I became suspicious that it might not be because the domain was redirecting, but because Chrome (my browser of choice) had the old routing cached. I confirmed this was the case by running Edge on the domain — it took me right to the new website.

It appears that I need to instruct Chrome to stop caching pages, and always check for a new version of the website. The must be a way to do this. Someone please tell me. I am a fairly new Chrome user and don't know much about setting options in it.

I have looked in Options, but no setting there seems to be the equivalent of Internet Explorer's "get new copy of each page". In fact, Edge doesn't seem to have it, either!!

Best Answer

There was a similar question posted here:

https://productforums.google.com/forum/#!topic/chrome/xR-6YAkcASQ

The answers are quite old so I don't know if it's been updated but back then it didn't look like chrome had an automated process (it probably still doesn't).

From the source above, two manual solutions are:

  1. Press CTRL+SHIFT+DELETE and manually clear the cache each time; or

  2. You will need to add a '?random.number' or "?date.code" to every link each time a URL is pressed on your website.

For example, if 'myhomepage.html?272772' is stored in the cache, then by generating a new random number eg. 'myhomepage.html?2474789', Google Chrome will be forced to look for a new copy.

Sorry if this is no help!

Edit: A potentially even better solution if you are developing using the Chrome Development Tools is found at this source:

https://stackoverflow.com/questions/5690269/disabling-chrome-cache-for-website-development

With a screenshot of the upvoted solution:

enter image description here

Hopefully this is an appropriate way to answer using another source.

Related Question