Windows – How to force Chrome disk cache size and directory location

google-chromewindows 7windows-registry

There is a command-line switch for Chrome for setting Disk cache size and location.
Mine looks like this: --disk-cache-dir="C:\0\cache" --disk-cache-size=1073741824

If you want to have these settings all-the-time, you need to modify ALL your icons, and your registry.

I have modified all my icons. And my registry.
However, my registry reverts all the time. How can I protect my registry from this?

The registry modification looks like this (exported it from my registry; .reg file):

Windows Registry Editor Version 5.00


–disk-cache-dir=\"C:\0\cache\" –disk-cache-size=1073741824 —

Best Answer

  • You should not change HKEY_CLASSES_ROOT (HKCR). This is simply a merged view from HKEY_CURRENT_USER\Software\Classes and HKEY_LOCAL_MACHINE\Software\Classes.

    • If you wish to make a change that affects all users that can connect to the machine, use:


    • If you wish to make changes that affect only the current user, use:


    Note: Depending on how Chrome was installed, you may not see one of these; i.e. if it was installed just for the current user, "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML" will be missing). But You can move and copy from one key to the other if you want.

    For more information: See Windows registry Information