Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

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

Learn More

With 250+ machines on our school network, is there a way to turn on "clear history when firefox closes" (cache setting only) by modifying a registry key or file?

  • 3 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 tech@school

more options

I need a way to turn ON the clearing of the cache programatically within a logon script. Kids are not clearing the cache and the roaming profiles on the Windows XP and Windows 7 machines are getting way too big to be moved across the network on every logon and logoff. Otherwise we will have to remove Firefox, which I do not want to do, nor do most of the people in the school :)

I need a way to turn ON the clearing of the cache programatically within a logon script. Kids are not clearing the cache and the roaming profiles on the Windows XP and Windows 7 machines are getting way too big to be moved across the network on every logon and logoff. Otherwise we will have to remove Firefox, which I do not want to do, nor do most of the people in the school :)

所有回覆 (3)

more options

There have been some threads here about large-scale deployment, but I don't know whether they would help after Firefox has been installed.

Random thought:

I suspect (but haven't checked) that changing the "Clear Recent History" options would add corresponding entries to prefs.js in the user's profile folder. (These usually are added during Firefox shut-down.) That's just a plain text file and you could append to it by a variety of means.

It might be possible to use a VBScript during logon to update that file before the user starts Firefox. The script would have to detect the random folder name(s) in order to make the update.

more options

You can do that via a mozilla.cfg file and either set a new default value or lock the pref if you do not want them to change the setting.

You can use these functions in mozilla.cfg:

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

See:


//
lockPref("privacy.sanitize.sanitizeOnShutdown", true);
lockPref("privacy.clearOnShutdown.cache", true);

由 cor-el 於 修改

more options

I will try these things on Wednesday and let you know how it worked out. Thanks!!!

Steve