搜尋 Mozilla 技術支援網站

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

Learn More

How to disable Firefox cache?

  • 7 回覆
  • 12 有這個問題
  • 512 次檢視
  • 最近回覆由 user1251572

more options

In the past in order to properly disable Firefox's cache I would set 'network.http.use-cache' in about:config, however now the option seems to have been removed, or at least its name seems to have changed as I can't find anything under that any more on the latest version of Firefox. So on the latest version (currently 46.0.1) how can one properly disable the cache?

In the past in order to properly disable Firefox's cache I would set 'network.http.use-cache' in about:config, however now the option seems to have been removed, or at least its name seems to have changed as I can't find anything under that any more on the latest version of Firefox. So on the latest version (currently 46.0.1) how can one properly disable the cache?

被選擇的解決方法

The disk cache is used in normal (non PB mode) and stores persistent data on the hard drive. The memory cache in used in normal mode and in PB mode and is purged when you close Firefox. It is best not to disable the memory cache to avoid performance issues (Firefox needs some kind of cache to work properly).

What specific reasons do you have to disable the cache?

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

所有回覆 (7)

more options

See:

  • bug 1198387 - Setting the network.http.use-cache pref to false breaks fetch interception

Please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html


There are browser.cache.*enable prefs like these:

  • browser.cache.disk.enable
  • browser.cache.memory.enable
more options

cor-el said

There are browser.cache.*enable prefs like these:
  • browser.cache.disk.enable
  • browser.cache.memory.enable

There are, but what exactly do they do and which one do I need (if it either of those two)? What is the difference between them?

more options

選擇的解決方法

The disk cache is used in normal (non PB mode) and stores persistent data on the hard drive. The memory cache in used in normal mode and in PB mode and is purged when you close Firefox. It is best not to disable the memory cache to avoid performance issues (Firefox needs some kind of cache to work properly).

What specific reasons do you have to disable the cache?

more options

cor-el said

The disk cache is used in normal (non PB mode) and stores persistent data on the hard drive. The memory cache in used in normal mode and in PB mode and is purged when you close Firefox. It is best not to disable the memory cache to avoid performance issues (Firefox needs some kind of cache to work properly). What specific reasons do you have to disable the cache?

Right, so it is the disk cache that I need to disable and that is now the option for disabling the cache? Also, sorry for my ignorance, but what does "PB" stand for?

The specific reason why I wish to disable the cache is security, I have had far too many malicious scripts coming with images and hiding in my cache causing me trouble, so if I am going to get any malicious scripts with my images or anything like that I want to be able just to restart my browser in order to clear it from memory and everything so I don't want a persistent cache. I have also not noticed any performance issue when disabling it so it helps me in terms of security, and doesn't seem to cause any issues.

more options

PB = Private Browsing mode

I think that the HTTP cache included some cases than the disk and memory cache, but I'm not an expert on this as Firefox has a lot of caches for all kind of data.

more options

cor-el said

I think that the HTTP cache included some cases than the disk and memory cache, but I'm not an expert on this as Firefox has a lot of caches for all kind of data.

Right, so if I just disable the disk cache will that be enough to stop it having a persistent cache of anything after I restart Firefox?

more options

The option that was removed, how was it different from the disk cache option?