Michal’s Notes

Michal’s Notes

Tuning Firefox: cache

Michal Janda's avatar
Michal Janda
Jul 24, 2024

If you have plenty of RAM and do no want Firefox to save temporary files to disk (for example because you have SSD and want to limit number of disk writes) you can move Firefox cache to RAM.

There is no way how to do it in gui, so you need to use favorite about:config. Search for parameter browser.cache.disk.enable and set that to false. Now disk cache is disabled. Then search for browser.cache.memory.enable and set that as true – it will enable cache in RAM (it is set to true already sometimes).

If you want to set how much RAM you will dedicate to cache, search for browser.cache.memory.capacity and as value set desired cache size in kilobytes.

Moving cache to RAM is good idea only if you have quick internet connection as cache is wiped out on every restart and all pictures, scripts etc. are downloaded again after restart.

Thanks for reading Michal’s Notes! Subscribe for free to receive new posts and support my work.

Discussion about this post

User's avatar
PAXMA's avatar
PAXMA
Feb 3

Looks like it is not relevant anymore. These days, SSDs are pretty durable:

https://www.reddit.com/r/firefox/comments/o0wadh/do_i_put_firefox_on_the_sdd_or_the_hdd/

https://www.reddit.com/r/Windows10/comments/ug150e/lpt_disable_browser_cache_in_firefox_so_you_dont/

https://www.enterprisestorageforum.com/hardware/ssd-lifespan-how-long-will-your-ssd-work/

Reply
Share

No posts

Ready for more?

© 2026 Michal Janda · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture