Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Disable Firefox Disk Cache Completely

more options

Hello, I recently purchased a SSD and I am using it. I was shocked to see that my SSD's TBW was 800GB in just 2 months whereas I never write any big files and then I realize that Firefox was eating my TBW and I have disabled some features in "about:config".

Those features are: browser.cache.disk.enable = false browser.cache.disk_cache_ssl = false browser.cache.memory.enable = true


But disabling those things did not helped me. I am trying to save my TBW. I want Firefox to never write anything in my SSD. I want to disable cache forever. I want Firefox to store all cache in Memory. I know it will take more internet bandwidth but no problem for me.

Can I tweak these settings in about:config?

browser.cache.disk.capacity = 0 or 1 (Not use if 0 means unlimited or disable in Firefox so I am using 1 and please tell me how what does 0 does) browser.cache.disk.content_type_media_limit = 0 or 1 (Not sure what this is) browser.cache.disk.enable = false browser.cache.disk.free_space_hard_limit = 0 or 1 browser.cache.disk.free_space_soft_limit = 0 or 1 browser.cache.disk.max_chunks_memory_usage = 0 or 1 browser.cache.disk.max_entry_size = 0 or 1 browser.cache.disk.max_priority_chunks_memory_usage = 0 or 1 (Not sure what this is) browser.cache.disk.metadata_memory_limit = 0 or 1 (Not sure what this is) browser.cache.disk.preload_chunk_count = 0 or 1 browser.cache.disk.smart_size.enabled = false browser.cache.disk_cache_ssl = false browser.cache.offline.capacity = 1 browser.cache.offline.enable = false browser.cache.offline.storage.enable = false

Can I create a new setting like browser.cache.disk.disable = true?

Hello, I recently purchased a SSD and I am using it. I was shocked to see that my SSD's TBW was 800GB in just 2 months whereas I never write any big files and then I realize that Firefox was eating my TBW and I have disabled some features in ''"about:config"''. Those features are: '''browser.cache.disk.enable = false''' '''browser.cache.disk_cache_ssl = false''' '''browser.cache.memory.enable = true''' But disabling those things did not helped me. I am trying to save my TBW. I want Firefox to never write anything in my SSD. I want to disable cache forever. I want Firefox to store all cache in Memory. I know it will take more internet bandwidth but no problem for me. Can I tweak these settings in ''about:config''? '''browser.cache.disk.capacity = 0 or 1 '''(Not use if 0 means unlimited or disable in Firefox so I am using 1 and '''please tell me how what does 0 does) '''browser.cache.disk.content_type_media_limit = 0 or 1 '''(Not sure what this is) '''browser.cache.disk.enable = false''' '''browser.cache.disk.free_space_hard_limit = 0 or 1''' '''browser.cache.disk.free_space_soft_limit = 0 or 1''' '''browser.cache.disk.max_chunks_memory_usage = 0 or 1''' '''browser.cache.disk.max_entry_size = 0 or 1''' '''browser.cache.disk.max_priority_chunks_memory_usage = 0 or 1 '''(Not sure what this is) '''browser.cache.disk.metadata_memory_limit = 0 or 1 ''' (Not sure what this is) '''browser.cache.disk.preload_chunk_count = 0 or 1''' '''browser.cache.disk.smart_size.enabled = false''' '''browser.cache.disk_cache_ssl = false''' '''browser.cache.offline.capacity = 1''' '''browser.cache.offline.enable = false''' '''browser.cache.offline.storage.enable = false''' Can I create a new setting like '''browser.cache.disk.disable = true'''?

由The Most Honourable于修改

所有回复 (4)

more options

The web cache -- temporary copies of html files, images, and other assets used in pages -- is only one part of what Firefox records to disk as you browse. There is a lot of other data, including:

  • Cookies
  • Local storage data set by sites
  • History entries (URL, date, icon)
  • Session history (open and recently closed tabs and windows)

Some SSD users who are paranoid about disk writing have cut down on writes by extending the update interval for session history from 15 seconds to 60 seconds or longer. If you want to try that:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste browser.sessionstore.interval and pause while the list is filtered

(3) Double-click the browser.sessionstore.interval preference to display an editing field, and change the value as desired, then press Enter or click the blue check mark button to save the change.

This value is in milliseconds, so add 000 to the number of seconds:

  • 15 seconds => 15000
  • 60 seconds => 60000
  • 2 minutes => 120000

Whether you should go beyond a couple of minutes depends on how important restoring your previous session -- at startup or after a crash -- is to you as a Firefox feature.


Alternately, you could launch private windows for browsing that you don't want recorded to disk. See: Private Browsing - Use Firefox without saving history.

more options
more options

So if I am watching a video in YouTube, that video will be stored as cache in my SSD or Memory?

more options

YouTube sends videos in fragments and it probably instructs browsers not to cache them for very long, if at all. However, you can research what is cached using the about:cache page and see what shows up there after watching a video.