1

We all know a "Hard Refresh" (eg Ctrl+Shift+F5 or +Shift+R) will cause the browser to reload the current page (and other assets) from the server.

But what if that page contains a redirect (either from a meta tag or Javascript) that instantly redirects me to another page? How can I instruct the browser to load the page from the server?

I'm using Chrome and Firefox, but interested in solutions for any browsers.

  • I don't see the point of this question. If the page forwards, why do you need to do a hard refresh on the page? What could you be retrieving from the server ? – Dave May 14 '14 at 05:36
  • Because the latest version of the page may do something else: in my case the url wasn't publicly accessible so it redirected elsewhere, and when it became publicly accessible, the cached page would keep redirecting me away from it. Of course, the implementation could be improved, but to debug I wanted to be able to do a hard refresh. – David Cook May 17 '14 at 08:14
  • Related: http://superuser.com/questions/304589/how-can-i-make-chrome-stop-caching-redirects – David Cook Jul 07 '14 at 06:01

2 Answers2

2

It's also possible to clear cache from the source view:

Prepend the url in the address bar with view-source: (eg view-source:http://myurl.com), then perform a hard refresh.

1

Perhaps this is the best way in Chrome:

In the opened developer tools (Ctrl+Shft+I or ++I) in the lower right corner click the little settings icon (it's like a gearwheel).

Activate Disable cache check-box.

https://superuser.com/a/406331/126464

  • I had to do the same in Firefox. The accepted answer redirected me before showing the source. – mapto Jun 07 '23 at 12:09