Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
    
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. –  user25656 Feb 15 '12 at 15:22
add comment

3 Answers

up vote 7 down vote accepted

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

share|improve this answer
    
Cf. <superuser.com/a/418591/65570>; and the links there, which also mentions --media-cache-size. –  imz -- Ivan Zakharyaschev Oct 27 '12 at 4:27
add comment

Start chrome with the following option:

--disk-cache-size=n

Where n is the cache size limit in bytes.

share|improve this answer
1  
Does this PERMANENTLY increase the Cache size or do i need to do this everytime i use chrome? –  kernel_panic Feb 16 '12 at 14:34
1  
it's one time. if you want it permanentely edit you chrome launcher. –  Rinzwind Feb 16 '12 at 14:46
add comment

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.

share|improve this answer
1  
You should alter this for a sollution for Ubuntu not windows. –  Rinzwind Feb 15 '12 at 15:12
    
And a slightly more aesthetic presentation of switches can be found here: List of Chromium Command Line Switches –  user25656 Feb 15 '12 at 16:06
    
where is chrome shortcut? where is prpperties? –  kernel_panic Feb 16 '12 at 14:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.