Disable firefox's disk cache and limit memory usage.

This commit is contained in:
Tom Alexander
2026-11-12 15:37:26 -05:00
parent 1965d29c43
commit bd03c5ec08

View File

@@ -84,6 +84,13 @@
"browser.ml.enable" = false;
"browser.ml.chat.enabled" = false;
"browser.ml.chat.menu" = false;
# Disable disk-based caching to reduce writes to SSDs. My machines have plenty of RAM.
"browser.cache.disk.enable" = 0;
# Max memory for cache in KiB (set to 1 GiB). This defaults to unbounded (-1).
"browser.cache.memory.capacity" = 1048576;
# Only keep the previous 5 pages in memory for the back button. This defaults to unbounded (-1).
"browser.sessionhistory.max_total_viewers" = 5;
};
# Check about:policies#documentation and https://mozilla.github.io/policy-templates/ for options.
policies = {