Firefox cache grows too big
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:
https://support.mozilla.org/en-US/questions/1271481
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("startup.homepage_override_url","file:///usr/share/doc/home.htm");
user_pref("startup.homepage_welcome_url","file:///usr/share/doc/home.htm");
user_pref("browser.shell.didSkipDefaultBrowserCheckOnFirstRun", true);
user_pref("app.update.auto", false);
user_pref("browser.shell.checkDefaultBrowser", false);
user_pref("media.videocontrols.picture-in-picture.video-toggle.enabled", 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:
- Firefox scrollbar arrows restored — November 20, 2021
- Tweaking Firefox preferences — November 15, 2021
- Firefox frustrations continue — November 13, 2021
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