site  contact  subhomenews

Firefox cache grows too big

November 22, 2021 — BarryK

In menu "Filesystem -> Easy Version Control", I took a snapshot, and wondered why it was so big. I then chose to rollback to "pristine first bootup" and ticked the checkbox to save browser settings -- that's when I discovered what is wrong -- the firefox cache is 1.1GB and that gets saved.

So, it is not really a "pristine first bootup" if it is keeping the firefox cache.

Need to limit the cache size, found out how here:

I have put this into the firefox-skeleton PET, file 'prefs.js':

user_pref("browser.startup.homepage", "file:///usr/share/doc/home.htm");
user_pref("browser.startup.homepage_override.mstone", "93.0");
user_pref("browser.tabs.warnOnClose", false);
user_pref("layers.acceleration.disabled", true);
user_pref("", true);
user_pref("", false);
user_pref("", false);
user_pref("", false);
user_pref("privacy.sanitize.pending", "[]");
user_pref("datareporting.healthreport.uploadEnabled", false);
user_pref("app.shield.optoutstudies.enabled", false);
user_pref("widget.non-native-theme.gtk.scrollbar.allow-buttons", true);
user_pref("browser.cache.disk.capacity", 384000);
user_pref("browser.cache.disk.smart_size.enabled", false);

...limiting to 384MB.

Previous posts about firefox-skeleton:

What I need to do next, is fix the rollback code, so it doesn't save the cache. I think the chromium cache also gets big, need to look at that also.

EDIT 2021-11-23:
I have reduced the limit to 64MB.
Rollback to "pristine first bootup", if choose to retain browser settings, history, bookmarks, etc., will delete the cache. This is done in file /usr/local/easy_version/erase-exceptions.

Tags: easy