搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to disable Firefox cache?

  • 7 个回答
  • 12 人有此问题
  • 1 次查看
  • 最后回复者为 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?