53

With the Firefox web developer toolbar I can select "Miscellaneous → Clear private data → Cache". Is there a way to do the same with a keyboard shortcut?

Edit: I am also using vimperator to drive Firefox with the keyboard; just found out that it's possible using: :emenu Extra.Web Developer.Miscellaneous.Clear Private Data.Cache.

Super Kai - Kazuya Ito
  • 22,221
  • 10
  • 124
  • 129
sotto
  • 2,044
  • 4
  • 18
  • 22
  • if you set auto-completion, you can simply type :emn[tab] cache[tab] here tab is tab key to jump to the option list displayed. To enable the auto-completiion, type the command: :set wildoption=auto – David.Chu.ca Dec 05 '09 at 05:18

9 Answers9

66

I think Ctrl+Shift+Delete takes out all private data, including the cache. Heres a link that'll tell you how to set up specific options.

goodeye
  • 2,389
  • 6
  • 35
  • 68
Brandon
  • 68,708
  • 30
  • 194
  • 223
  • Thanks, I didn't know it can be set. As most web developers, I need to delete the cookies and auth. session regularly while I want to keep the browser history. Checking and unchecking particular checkboxes each time was really annoying. – david a. Mar 25 '09 at 09:46
  • 2
    Use Cmd+Shift+Delete on OSX, this will open the same "Clear Recent History" window. This isn't as good as an immediate clearing of the cache, but it saves a few mouse movements. –  Mar 08 '11 at 14:19
  • 2
    this answer seems to be outdated, the article linked to is still there, but the UI has changed significantly since then and apparently they've moved or taken away this functionality. – Nathan Hughes Jan 21 '15 at 21:48
26

You can also reload and clear cache for a certain page with

Cmd + Shift + R

on a mac, or

Ctrl + F5

on a windows/linux machine.

(these are additions to the plain reload shortcuts Cmd+R / F5)

andi
  • 14,322
  • 9
  • 47
  • 46
  • 6
    carefull, this shortcut also tell the browser to never use the cache for the next session. i.e. if you add the same image two times, it will be downloaded TWO times :) ctrl+f5 is dangerous for web developpers ! can lead to strange behaviors that normal users will never see. – vvo Dec 21 '09 at 10:02
4

I use the web developer add-on to totally disable my cache on my development machine. That way you never have to worry about clearing your cache.

Bryan Rowe
  • 9,185
  • 4
  • 26
  • 34
3

In Firefox is

CTRL + SHIFT + R

Source

Zoltan Toth
  • 46,981
  • 12
  • 120
  • 134
Andrea Scarafoni
  • 937
  • 2
  • 13
  • 26
2

For Mac OSX it is

Command + Shift + Delete

for all browsers (except Safari)

Zoltan Toth
  • 46,981
  • 12
  • 120
  • 134
Nathan_Jon
  • 29
  • 1
2

I guess

Ctrl + Shift + Delete

is not what you want?

Zoltan Toth
  • 46,981
  • 12
  • 120
  • 134
Peter Lang
  • 54,264
  • 27
  • 148
  • 161
0

You can try this combination:

ctrl + F5

Zoltan Toth
  • 46,981
  • 12
  • 120
  • 134
  • Sometimes, that's not good enough. When it doesn't work any more, you have to press CTRL + SHIFT + DELETE and select the options you want. Typically, I just have cache selected and keep everything else. – vbullinger Aug 03 '12 at 14:07
0

What I do is go to

Tools > Options > Privacy > Show Cookies

then just keep the Show Cookies window open.

It stays minimized while on your web page so you just have to hit

Maximize > Remove All cookies
Zoltan Toth
  • 46,981
  • 12
  • 120
  • 134
0

<Firefox>

Reload the page by emptying cache:

Ctrl+F5 or Ctrl+Shift+R

Reload the page by not emptying cache:

F5 or Ctrl+R

Super Kai - Kazuya Ito
  • 22,221
  • 10
  • 124
  • 129