為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Is there a way to globally disable the Firefox cache?

  • 3 回覆
  • 3 有這個問題
  • 28 次檢視
  • 最近回覆由 hofmeyer

more options

I'm running a computer lab with several linux PCs (Ubuntu 14.04 LTS / latest version of Firefox). The users homedirectories are located on a central fileserver and limited by a diskquota. Unfortunately Firefox takes up a large part (if not all) of this quota with it's cache. Is there a way to globally disable the cache?

EDIT: Adding the following lines to /etc/xul-ext/ubufox.js helped...

pref("browser.cache.disk.enable", false); pref("browser.cache.disk.smart_size.enabled", false); pref("browser.cache.disk.capacity", 0);

I'm running a computer lab with several linux PCs (Ubuntu 14.04 LTS / latest version of Firefox). The users homedirectories are located on a central fileserver and limited by a diskquota. Unfortunately Firefox takes up a large part (if not all) of this quota with it's cache. Is there a way to globally disable the cache? EDIT: Adding the following lines to /etc/xul-ext/ubufox.js helped... pref("browser.cache.disk.enable", false); pref("browser.cache.disk.smart_size.enabled", false); pref("browser.cache.disk.capacity", 0);

由 hofmeyer 於 修改

被選擇的解決方法

Adding the following lines to /etc/xul-ext/ubufox.js helped...

pref("browser.cache.disk.enable", false); pref("browser.cache.disk.smart_size.enabled", false); pref("browser.cache.disk.capacity", 0);

從原來的回覆中察看解決方案 👍 2

所有回覆 (3)

more options

There is but there might be performance issues with doing so. I'm wondering is this really Firefox's cache taking up all that space? I've always seen Firefox save cache on the computer itself.

Ideas I've got:

  • Lower the maximum limit of the cache in the Options > Advanced > Network tab. Checkmark "Override automatic cache management" & set a limit there. Ex. Limit cache to 50 MB of space
  • Set Firefox to clear the cache at every shutdown using the "Clear history when Firefox closes" option. Click the Settings button for this option & checkmark "Cache" (Article link)
  • Place everyone's Firefox in permanent private browsing mode (no cache, history or passwords are saved in this mode) (Article link)
  • Disable Firefox cache with the browser.cache.disk.enable about:config setting and see how that goes (not recommended)

I said not recommended on the last option because you may see weird performance results and other side effects that you won't be able to determine if it was due to disabling that setting.

more options

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");
pref("general.config.obscure_value", 0);

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

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

See:

more options

選擇的解決方法

Adding the following lines to /etc/xul-ext/ubufox.js helped...

pref("browser.cache.disk.enable", false); pref("browser.cache.disk.smart_size.enabled", false); pref("browser.cache.disk.capacity", 0);