How do I increase cache size in Chrome?

30,421

Solution 1

Absolutely. An easy fix to this is to add the following argument to the command.

chromium-browser --disk-cache-size=n

say n is 500000000 this would be 500 MB

You can check to make sure it increased it by typing the following in your browser and then looking at the Max Size value.

chrome://net-internals/#httpCache

Solution 2

Chrome now has two startup switches that you can use --disk-cache-dir and --disk-cache-size.

Simply close Chrome, right-click your Chrome shortcut, click Properties, and then in the field labeled "Target:", make it look something like this:

"...chrome.exe" --disk-cache-dir="CACHE_DIR" --disk-cache-size=N

Where CACHE_DIR is the new cache location, and N is the cache size limit, in bytes.

Use whichever switch you need, or both. Keep in mind, however, that these features may not be completely stable yet. But you probably shouldn't have any problem with using them.

And to anyone who's interested, I caught gander of the existence of these switches directly from a source code file for Chrome.

Solution 3

Start chrome with the following option:

--disk-cache-size=n

Where n is the cache size limit in bytes.

Share:
30,421
kernel_panic
Author by

kernel_panic

Updated on September 18, 2022

Comments

  • kernel_panic
    kernel_panic over 1 year

    is there any way to increase the cache size of google chrome in ubuntu 11.10 so that frequently visited pages load faster, im using a very-slow internet connection so i badly need this

    • Admin
      Admin about 12 years
      I'm going to stick my neck out here but I suspect that increasing the cache size over the default may not significantly improve things. What's more, pages often have fresh content and rotate ads thereby diminishing the utility of cache. You may have more luck in getting pages to "load" faster by blocking unnecessary items from downloading but that's another issue not relevant to askubuntu.
  • Rinzwind
    Rinzwind about 12 years
    You should alter this for a sollution for Ubuntu not windows.
  • Admin
    Admin about 12 years
    And a slightly more aesthetic presentation of switches can be found here: List of Chromium Command Line Switches
  • kernel_panic
    kernel_panic about 12 years
    where is chrome shortcut? where is prpperties?
  • kernel_panic
    kernel_panic about 12 years
    Does this PERMANENTLY increase the Cache size or do i need to do this everytime i use chrome?
  • Rinzwind
    Rinzwind about 12 years
    it's one time. if you want it permanentely edit you chrome launcher.
  • imz -- Ivan Zakharyaschev
    imz -- Ivan Zakharyaschev over 11 years
    Cf. <superuser.com/a/418591/65570> and the links there, which also mentions --media-cache-size.
  • David
    David about 4 years
    As of Chrome (Linux) Version 80.0.3987.149 (Official Build) (64-bit), the net-internals link does not work: it returns this message: The net-internals events viewer and related functionality has been removed. Please use chrome://net-export to save netlogs and the external catapult netlog_viewer to view them.