Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like using Chrome as my everyday browser, as well as for web dev work. I'd like to be able to prevent Chrome from caching anything from localhost (or really, any arbitrary host name) so that I don't have to hard-refresh (Ctrl-Shift-R) all the time.

Is this possible? How?

share|improve this question
I have the same question, I use johnnycache for FireFox, but something like that for Chrome would be nice – Wim Deblauwe Sep 30 '11 at 8:21

You can't turn off the cache discriminately, but as of v15, you can turn it off completely via a settings panel that you access by clicking the gear button in the lower right corner of the developer tools window. On the network panel of the developer tools, you also have the option to clear cache from the right-click menu with only a confirmation dialog (i.e. it doesn't pop up the preferences tab the way "Clear Browsing Data" does.

share|improve this answer
I never noticed this before, really useful. – Nicholas W Feb 2 '12 at 12:22
another neat hidden chrome feature - When developer tools is open, you can right-click the refresh button for some additional options – Zach Lysobey Feb 5 '13 at 15:29
Thank you VERY much. – OZ_ May 14 '13 at 22:09
Alas, in the current version of Chrome, the option now reads "Disable cache (while DevTools is open)". Not so useful anymore. – Kyralessa Mar 10 '14 at 19:41

This is already possible if you switch to Incognito mode for that site/host.

Ctrl + Shift + N

Viewing a site in Incognito mode should give you a clean slate void of any cached items and images.

If you're in a session, then it will reset it for you too. So you may want to watch for that when developing.

But if you really need to disable it on a per-site basis, then no. It's not currently possible.

share|improve this answer
To be blunt, incognito is even more of a pain than Ctrl-Shift-R. – Matt Ball Mar 17 '11 at 15:57

Disabling the cache from the developer tools settings in Google Chrome does not prevent caching of images, I've noticed. It only disables caching of CSS, JavaScript, and markup. Incognito mode is likely the most effective way of ensuring you're dealing with an uncached webpage.

share|improve this answer
Also useful to know. I guess most developers only care about css, js, etc. So that's why it's limited to those. I'm surprised there's no extension... – isaaclw Aug 30 '12 at 19:00
In Chrome 26, caching also appears to be disabled even for images. I see 200 OK get requests for all images on every page view. Can anyone else confirm? – NickG May 9 '13 at 12:19

Why not use Chrome profiles (aka "users")?

Configure one to be your "dev" profile (with no caching). You can enable a cache-killing plugin like this. You can disable cookies too. When it's time for a dev session, use that profile. Then when it's time to chill simply switch the profile back. All profiles can be run simultaneously.

This is also SUPER handy for testing purposes.

Assigning shortcuts and keyboard shortcuts to switch back-and-forth is icing on the cake.

Now if you really want to be slick you could have multiple user profiles for different projects/environments all at once (i.e., one for JS, one for server-side, etc... multiple monitors a must). Better use the superuser icon if this is you. ;-)

share|improve this answer
and in this profile, you can configure it to ignore dns caching as well – Brad Parks Sep 24 '15 at 12:36

Take a look at Chrome Cache Killer extension.

This extension automatically clears your browser cache before loading a page. Can be enabled/disabled with a mouse click.

It works very well and solved me lots of headaches when developing web sites since Chrome keyboard shortcuts to clear the cache don't seem to work very well. I found it when looking for a solution to Chrome cache problems.

share|improve this answer
Are you associated with this project in any way? Why do you recommend it? It may be a great tool, but if you include what it does as well as pros/cons in your answer, it will add value to your answer. – Raystafarian Jul 22 '13 at 10:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .