Disable cache on Chrome

As a developer, I often need to clear the cache to see my changes.

The best is when the cache can be disabled completly.

There are many options but here are 3 options that I consider like the best of the options.

Option #1

Clear the cache for a single page.

Install the extension Web Developer Toolbar and use the "Options > Reset page" feature of the extension.

You have to click this option every time you want to clear the cache. The page will reload itself when you do that.

Option #2

Use the incognito option. Any page you visit within icognito will never go in the cache and will never be loaded fro mthe cache. This has the advantage of being able to disable the cache for a whole set of pages while still be able to have pages which uses the cache.

Option #3

Disable completly the cache.

Right click on your chrome shortcut and choose "Properties". Modify the "Target" value and add the following at the very end (after the double quote) and restart chrome:

--disk-cache-size=N --media-cache-size=N

Here is the complete value that I have for my shortcut:

"C:\Documents and Settings\Christian Roy\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --disk-cache-size=N --media-cache-size=N

With this option, you cannot use the cache on any pages unless you change your shortcut and restart chrome.


The second option is what I will be using.

What will you be using?

Second option, me too... :D

Second option, me too... :D

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You may post PHP code. You should include <?php ?> tags.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options