Forgot Password

Browser.cache.memory.capacity

For general browsing on a healthy system (4GB+ RAM), manually raising the value above the automatic setting rarely improves performance and may cause unnecessary memory waste.

Some advanced users place Firefox’s entire cache onto a (a virtual drive stored entirely in RAM) to reduce SSD writes or for theoretical performance gains. In such cases, they might disable the normal memory cache ( 0 ) or increase it ( browser.cache.memory.capacity ) to align with the RAM disk size.

The browser.cache.memory.capacity parameter is a preference hidden inside Firefox's advanced configuration registry ( about:config ). It defines the maximum amount of RAM, measured in kilobytes (KB), that Firefox can use to store decoded images, secure pages, and standard web resources during an active session. Browser.cache.memory.capacity

In the configuration panel, a value of -1 tells Firefox to automatically manage the cache size based on current system availability. Step-by-Step Guide to Modifying the Cache Capacity

The browser.cache.memory.capacity preference represents one of Firefox s most effective performance-tuning options. While it may seem intimidating at first—especially since it doesn t appear by default—understanding and configuring this setting can transform your browsing experience. For general browsing on a healthy system (4GB+

This controls the "Back-Forward Cache" (bfcache), which stores entirely rendered webpages in memory for instant layout restoration when navigating pages sequentially. Setting this to 0 disables it to save RAM, while a value of -1 lets Firefox adjust it dynamically based on system specifications. Reverting Changes and Troubleshooting

The default setting ( -1 ) is correct for the vast majority of users. Mozilla’s engineers have spent years fine-tuning the adaptive algorithm to balance responsiveness against memory pressure. The browser

Found deep within the browser’s advanced configuration, this setting allows users to control how much physical RAM is dedicated to storing web content. Whether you are running a high-end workstation with 64GB of RAM or a legacy machine struggling with limited resources, understanding this setting can help you optimize your browsing experience. What is browser.cache.memory.capacity ?

To get the most out of your cache settings, consider these related about:config entries: