Browser cache trick.Forum: DSL Tips and Tricks Topic: Browser cache trick. started by: Zucca Posted by Zucca on July 19 2006,11:09
I use this trick all the time with my FireFox:
Basically it 'moves' FireFox cache to ram. Makes it run a little faster. Change size=32M to what ever you like. Also set FireFox cache to little bit less than the partition created with code above. One meg should be just fine. This is almost useless if you run DSL from ram. If I run DSL from ram I mount that cache dir some where else and place a link to FireFox cache path to point to that mount. With this trick I can be sure that FF cache wont be saved to my memory stick. Posted by mikshaw on July 19 2006,12:29
Good one. thanks!I never was sure what tmpfs was used for...now i know at least one good use. Posted by ^thehatsrule^ on July 19 2006,16:52
heh, isn't /ramdisk dependent on tmpfs? I'd say that's a pretty good use too
Posted by mikshaw on July 19 2006,16:59
I guess it probably is. I never bothered to discover how the ramdisk was created, but i guess since Zucca's other post about increasing ramdisk size remounted a tmpfs filesystem it should have clued me in...
Posted by kerry on July 19 2006,21:41
Interesting, i use the fasterfox extension with disk cache turned off(set to 0) so i don't even have a cache folder in my /.mozilla file. if i turn it on then there is a cache folder there. so i'm wondering is that fasterfox setting doing the same thing as your little trick?
Posted by mikshaw on July 19 2006,22:11
Considering mount is typically root-only, I'd say probably not...that would cause problems for users who cannot access the root account. My guess is that it just doesn't cache anything, or it redirects the cache to ram in some other way.
Posted by kerry on July 19 2006,23:58
That's what i mean, it's set to use memory only, so that's ram right? I skip any disk access and all the browser stuff goes straight to memory, just like running in ram? Does that make since?
Posted by Zucca on July 20 2006,02:23
I'm not familiar with FireFox extensions... But I think that Faterfox reserves some extra RAM for FireFox and does the same what Opera can do. (Opera has memory cache and disk cache.)
Posted by kerry on July 20 2006,06:26
what, you don't use fasterfox? you have really got to try it then. you can control all the cache memory for the browser, set the amount and even the cache for dns(howmuch and howlong) on top of that you can set the number of connections,pipelining,rendering and the number of pages to keep in ram. but the best feature is i can see how long it takes the page to load, 0.650s for this page here. -> < http://fasterfox.mozdev.org/screenshots.html >
Posted by Zucca on July 20 2006,08:32
Oooo. A tuner's tool. ;)I'll check that out as as soon as I get back home. Posted by kerry on July 25 2006,02:13
Hey zucca, i forgot you can also get some added performance by using a firefox made for your cpu, it's called swiftfox, i only just started using it again and it cut all my previous load times in half. you just unzip it,rename it to firefox,rename your current firefox to firefox.old(just in case), then just copy the new one there, don't forget to copy the plugins to.-> < http://getswiftfox.com/releases.htm >
|