From 6fc0f09007ad81f79b65567609666cddc7953079 Mon Sep 17 00:00:00 2001 From: Hal <11689349+yokoffing@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:51:45 -0500 Subject: [PATCH] Updated Optional Hardening (markdown) --- Optional-Hardening.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Optional-Hardening.md b/Optional-Hardening.md index e4683da..b8c9b13 100644 --- a/Optional-Hardening.md +++ b/Optional-Hardening.md @@ -88,8 +88,7 @@ Keep in mind that disabling the disk cache is only available on Firefox. It is c Only disable the disk cache if your machine has or uses: * **[HDD](https://www.pcmag.com/encyclopedia/term/hard-disk).** Hard drive failure with modern SSDs is [non-existent](https://www.reddit.com/r/firefox/comments/xxj06q/comment/irfidb4/). -* **12GB+ RAM (memory).** Only using the memory and media caches may be faster, but [YMMV](https://www.urbandictionary.com/define.php?term=ymmv). -* **100-300+ Mbps** internet speed. Otherwise, it's probably faster to retrieve information from disk ([test](https://fast.com/)). +* More than **300 Mbps** internet speed. Otherwise, it's probably faster to retrieve information from disk ([test](https://fast.com/)). * Or ultimately, you believe disabling it helps your privacy or performance. ```javascript // PREF: disable disk cache @@ -117,11 +116,14 @@ user_pref("security.cert_pinning.enforcement_level", 2); #### Option 1: Clear cookies and cache on shutdown * `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Delete cookies and site data when Firefox is closed* ```javascript -// PREF: delete cookies and site data on shutdown +// PREF: delete cookies, cache, and site data on shutdown user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("privacy.clearOnShutdown.cache", true); user_pref("privacy.clearOnShutdown.cookies", true); user_pref("privacy.clearOnShutdown.offlineApps", true); + +// PREF: do not save extra session data such as form content, +// scrollbar positions, and POST data after crashes or restarts user_pref("browser.sessionstore.privacy_level", 2); ``` @@ -138,6 +140,9 @@ user_pref("privacy.clearOnShutdown.cache", true); user_pref("privacy.clearOnShutdown.cookies", true); user_pref("privacy.clearOnShutdown.offlineApps", true); user_pref("privacy.clearOnShutdown.siteSettings", false); + +// PREF: do not save extra session data such as form content, +// scrollbar positions, and POST data after crashes or restarts user_pref("browser.sessionstore.privacy_level", 2); ```