How can I do a Cache Refresh in Google Chrome?

340

96

I don't know what exactly it's called, by cache refresh I mean, refresh the page after clearing its cache. I don't want to clear the entire browser cache.

I can't seem to cache refresh my pages. In Firefox, I know it to be Shift+Refresh.

In Chrome, I've tried Ctrl+R, Ctrl+Refresh, Alt+Refresh, Shift+Refresh but none of them work.

gAMBOOKa

Posted 2009-09-07T20:46:34.103

Reputation: 341

Keep a shortcut for chrome.exe -incognito or for IE, IExplorer.exe -private comes handy in task bar- these shortcuts helps to invoke private browsing which does not have knowledge of cache... – HydPhani – 2015-06-06T23:33:05.273

2My version's 4.0.206.1 Tried it again after making a change to my source code (PHP). Refreshed fine in FF with Shift+F5. Change didn't show up Chrome after Ctrl+Refresh. – gAMBOOKa – 2009-09-07T20:54:11.027

By "Ctrl+Refresh", do you mean actually clicking the refresh button? I don't know whether that works in Chrome; I'm nearly positive Ctrl+F5 works as expected, though. – None – 2009-09-07T20:58:17.610

1Tried both with F5 and Refresh, Ctrl and Shift... no change. No proxy configured, – gAMBOOKa – 2009-09-07T21:19:19.087

This bug has been fixed since the question was asked. This function did not exist and was added later. (Remember, Chrome is essentially beta software.)

– Synetech – 2012-02-22T23:07:39.623

12Command-Shift-R works in Mac (OS X 10.6.7 and Chrome 17.0.963.56). – Joe Mornin – 2012-02-28T14:44:56.280

5On a mac: hold CONTROL and click Chrome's reload button – Mitch Fournier – 2012-05-05T19:04:02.123

Using SHIFT (not control) while clicking reload works for me on Mac – nicolas – 2013-12-15T21:57:00.183

For me, an extension Clear Cache adds toolbar button. In options you can enable to Reload active tab after cleared cache. Also in extension manager you can assign keyboard shortcut to it to invoke it from keyboard. I use Ctrl+Del for this.

– psulek – 2014-05-29T12:37:03.600

Answers

348

Push F12 or Ctrl+Shift+J to "Open Developer Tools" on Windows (On Mac: Cmd+Opt+I) then you can right click on the refresh icon and select 'Empty Cache and Hard Reload'

screenshot

See: https://stackoverflow.com/questions/12633425/chrome-browser-reload-options-new-feature

The documentation says:

  • For Windows and Linux: Shift+F5 or Ctrl+Shift+R
    • (screenshot): enter image description here
  • For Mac: Cmd+Shft+R):

Reloads your current page, ignoring cached content.

Although some have reported this works, others have said it does not work correctly

Your other options are:

  1. JavaScript Console

    The JavaScript Console is available in two modes within Chrome DevTools: the primary Console tab, or as a split-view you can display while on another tab (such as Elements or Sources).

    To open the Console tab, do one of the following:

    Use the keyboard shortcut Command - Option - J (Mac) or Control -Shift -J (Windows/Linux). Select View > Developer > JavaScript Console.

    F12 doesn't appear to be mentioned here but will open this console on Windows as well.

    Chrome Developer Tools

    Using the JavaScript Console

  2. Incognito window

    Another interesting option is to open a new incognito window (Ctrl+Shift+N On Mac: + Shift + N.). This window won't use any stored cookies, cached content, or DNS resolutions, so you can test stuff in it without slowing your normal browsing down by dumping the cache. This is what I almost always do instead of clearing the cache. https://support.google.com/chrome/answer/95464

  3. Disable cache

    Open Chrome Developer Tools (F12, Mac: ++I). Click the settings icon (a gear in the bottom right corner). Check "Disable cache". Now when you browse with your Developer tools open caching is disabled.

  4. Click&Clean

    Finally there is also the option of the Click&Clean extension

Coops

Posted 2009-09-07T20:46:34.103

Reputation: 589

Still says "(from cache)" for the root file. I can even shut down the server on localhost completely and the browser STILL won't return an error!!! This is extremely painful for me as a dev... – Killroy – 2015-01-26T00:56:17.197

I'm pretty sure control-R used to work. Now control-F5 only seems to do it – Sebas – 2016-12-01T15:08:06.267

1Disable cache is on the Network tab of Developer Tools now. – Neurotransmitter – 2016-12-28T09:51:01.630

1I'm not sure why anyone said you do not need the dev tools open. For me, you need them open and then this works great. Thanks for the tip. – nycynik – 2017-03-14T21:54:06.757

2This doesn't work for me. f12 does nothing. Chrome 25.0.1364.172 on OSX 10.6.8. – Jonathan Hartley – 2013-03-29T20:19:07.840

1

You don't need to open dev tools. Also F12 is for windows. On mac : ⌥⌘I Source: https://developers.google.com/chrome-developer-tools/docs/shortcuts

– basarat – 2013-03-31T01:56:36.973

Not sure if it was the Click&Clean and Ctrl-F5 but it finally worked for me. Thanks! – Patrick – 2013-04-24T14:14:52.563

Came here looking for a quick solution, sick of Ctrl+F5 not working, but this is very long-winded: it's quicker or me to do hold Ctrl+F5 a second or two (rapidly reloading), which does work. Other than that, I don't even see the option you allude to in the first para, but you seem to miss the basic F12->Network->Right-Click->Clear Browser Cache. Granted this does do the entire cache (not cookie etc., though). – Grant Thomas – 2013-05-13T20:50:23.290

Does the first sentence in my answer not work for you Push F12 then you can right click on refresh and select 'Empty Cache and Hard Reload' ? – Coops – 2013-05-14T10:55:22.760

1I would think these options would only appear when Chrome wanted to show them! I now realize it would only show when Developer tools was open. Also if somebody here doesn't like to right click you can do a long click on the refresh button to achieve the same effect. – Jasjeev Singh – 2013-06-20T16:15:45.900

65

Another interesting option is to open a new incognito window (Ctrl+Shift+N). This window won't use any stored cookies, cached content, or dns resolutions, so you can test stuff in it without slowing your normal browsing down by dumping the cache. This is what I almost always do instead of clearing the cache.

no

Posted 2009-09-07T20:46:34.103

Reputation:

this will also disable extensions, which may go counter to some testing – Daniel Watrous – 2016-09-06T19:20:37.217

1+1 I find Chrome will cache file downloads. This is especially frustrating when I'm working on apache/nginx configs and I'm downloading index.php instead of viewing it. The only way is the clear the entire cache, use incognito, or use Firefox. – James – 2011-03-14T16:29:19.857

1argh, except sometimes it doesn't work. I just spent 15 minutes trying to figure out why my externally loaded SWF file wasn't accurate. Firefox showed it as being correct, no keystroke refresh combo in Incognito Chrome cleared the SWF from cache, nor did clearing the actual Chrome cache and refreshing the Incognito window. I had to close and re-open Incognito window completely for the cache to finally let go of the SWF. Was working fine for about an hour until this happened :/ – danjah – 2012-02-12T22:39:09.207

Again 5 minutes later, this is not a reliable solution insofar as I can tell. Chrome v17.0.963.46 m – danjah – 2012-02-12T22:47:36.027

19

According to documentation, Ctrl+F5 or Shift+F5 should work. Maybe you have a proxy configured on IE & chrome, which is caching your page?

pauloya

Posted 2009-09-07T20:46:34.103

Reputation: 145

3Link in your answer no longer directs to the intended page. – Audite Marlow – 2016-12-15T10:05:14.923

2If you really want to be sure you have to clear the cache using Tools options. – sorin – 2010-07-22T16:17:49.423

2You need to clear the cache using Tools in order to flush the favicon from the cache; normal hard-reload doesn't do it. – RomanSt – 2010-12-22T19:03:29.510

9

A workaround is hitting reload very quickly twice in a row.

Josh Lee

Posted 2009-09-07T20:46:34.103

Reputation: 1 553

aside from more direct ways like disabling cache under network tabs or in preferences, I sometimes find that refreshing the page more than ten times has the clearing effect. Just repeatedly hit refresh 10-15 times – roberthuttinger – 2018-01-18T17:15:30.820

1Not in all cases it seems, I just had a page that didn't want to load because of earlier dns issues and Chrome simply refused to load it for about a minute... after that it worked again. – Wolph – 2013-09-20T11:51:11.233

9

I've had problems with Chrome refreshing in spite of using shift+F5 or +shift+r.

What I've found works though pretty brutish is to hold down +shift+r for a few seconds so that the browser makes multiple attempts to refresh the Java cache and fails. Then the next time it successfully retrieve JS from the server.

BigRed

Posted 2009-09-07T20:46:34.103

Reputation:

1Yes, I can confirm this. I've been doing this myself. – gAMBOOKa – 2010-10-13T03:43:06.757

9

Chrome sucks for this. Sometimes I can get Shift+F5 to work but not always. My solution for the moment is to use the 'Click & Clean' extension. It's ugly but works every time so I'd recommend that for now.

EightyOne Unite

Posted 2009-09-07T20:46:34.103

Reputation: 141

2For me, Ctrl+Shift+R twice works every time. I don't know why they made it so annoying. – RomanSt – 2011-09-08T13:46:00.740

7

Open Chrome Developer Tools (F12 or Ctrl+Shift+I or Menu/Tools/Developer Tools). Click the settings icon (a gear in the bottom right corner). Check "Disable cache". Now when you browse with your Developer tools open caching is disabled.

Paul

Posted 2009-09-07T20:46:34.103

Reputation: 121

2

Ctrl+Shift+F5 seems to work for me.

Todd

Posted 2009-09-07T20:46:34.103

Reputation: 1

2

You can right click, go Inspect Element under the Resources or Application (in newer versions) tab collapse Cookies right click on domain name and click Clear.

Dolphin

Posted 2009-09-07T20:46:34.103

Reputation: 265

1

On Windows Ctrl + F5 for hard reload, and just F5 for reload.

On Mac + + R for hard reload and + R for reload.

hard reload clears the stored cache for that page.

If you're interested in just testing stuff out, go incognito. You can just close this window to clear all the temporary cache and history.

On Windows: Ctrl+Shift+N

On Mac: + Shift + N

abe312

Posted 2009-09-07T20:46:34.103

Reputation: 527

1

it could simply be your keyboard settings, check if you have the functions keys enabled or disabled, with my logitech keybaord it is the FMode key, similar to NumLock!

Juggy

Posted 2009-09-07T20:46:34.103

Reputation:

1

  1. Click the Tools menu. (the wrench in the upper-right corner)

  2. Select Options.

  3. Click the Under the Hood tab.

  4. Click Clear browsing data…

  5. Check the boxes for the types of information you wish to delete.

    • Clear browsing history
    • Clear download history
    • Empty the cache
    • Delete cookies
    • Clear saved passwords

You can also choose the period of time you wish to delete cached information using the Clear data from this period dropdown menu.

  1. Click Clear Browsing Data when ready.

Kristin

Posted 2009-09-07T20:46:34.103

Reputation:

12Why would I delete my entire cache to test a single page?! I'd rather use Firefox. – gAMBOOKa – 2010-10-20T08:31:14.023

Chrome is back in the picture as you can now hard reload - http://superuser.com/a/512833/92862

– Coops – 2012-12-03T11:45:01.713