How to disable browser cache in Chrome

Just found out about this solution. You start Chrome under Windows with --disk-cache-dir=null parameter and enjoy. Works also under *nix system with /dev/null.


You can clear the cache regularly.

Settings -> Advanced -> Privacy and Security -> Clear browsing data

or

More Tools > Clear browsing Data

Once the cache is cleared use Incognito mode to disable caching while browsing.

The easiest way to disable browser caching in Google Chrome is simply to use its "Incognito Window" mode, similar to IE's InPrivate mode. Press CTRL + SHIFT + N to open up the relevant tab.

Some other suggestion here for normal mode, not sure if any of them work.


You can limit the disk cache size with a very small number (say, 1 byte) with an option:

--disk-cache-size=N

Where 'N' is the cache size limit, in bytes

Perhaps, another option is also useful for a similar purpose: --media-cache-size=1

I've tried --disk-cache-size=1 in my Chromium 17.0.963.1 (under Linux), and it has an effect: the size of the cache dir has reduced tremendously!

(Now I wonder whether it's possible to put this option into a configuration file, preferrably system-wide one -- so that it will be the default without me having to replace the menu and/or hiding the executable with my own script with this option. I would like it as a default on my system as a measure for more effective usage of my SSD.)