We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can I deploy the setting of clear cache on exit for all users?

  • 1 回覆
  • 1 有這個問題
  • 65 次檢視
  • 最近回覆由 cor-el

more options

How can I deploy the setting of clear cache on exit for all users?

How can I deploy the setting of clear cache on exit for all users?

所有回覆 (1)

more options

Note that Firefox disables the disk cache if you use "Clear history when Firefox closes" to clear the cache (see about:cache), so you can either disable the disk cache via its related pref or set the prefs related to clearing this data,but then other items that have a check-mark by default are cleared as well.

  • browser.cache.disk.enable
  • privacy.clearOnShutdown.cache
  • privacy.sanitize.sanitizeOnShutdown

You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, but allow changes in current session
lockPref();	// lock pref, disallow changes

See also: