Browser.cache.memory.capacity Jun 2026

Occasionally, major Firefox version updates reset advanced preferences to their factory defaults. If you notice a sudden dip in back-navigation performance, verify your custom value inside about:config to ensure it wasn't overwritten. Your computer's Whether you primarily want to fix lag or maximize speed How many tabs you typically keep open at once Share public link

Increasing this value can speed up page navigation (especially the Back/Forward buttons) by keeping recently visited pages in RAM instead of reloading them from the slower disk or the internet. How to Configure It

When you navigate the web, Firefox must download, parse, and render thousands of assets. To avoid re-fetching identical assets on every click, Firefox stores them in RAM. Retrieving a JPEG from RAM takes nanoseconds (0.1 ms), whereas fetching it from an NVMe SSD takes microseconds (50 µs), and from a spinning hard drive or the network, milliseconds (10–100 ms). Browser.cache.memory.capacity

browser.cache.memory.capacity can be set to one of three types of values. Understanding each is key to making an informed decision.

If it does not exist, select the radio button, type the name, and click the + (Add) button. Step 3: Edit the Value Click the Pencil icon next to the preference to edit it. Enter your desired value in kilobytes (KB) . Click the Checkmark icon to save your changes. Restart Firefox for the changes to take full effect. Recommended Values for Different Use Cases The value you enter must be calculated in kilobytes ( Target Cache Size Value to Enter (in KB) Ideal System Profile Disabled 0 Ultra-low RAM testing / Debugging Dynamic (Default) -1 Standard users letting Firefox decide 128 MB 131072 Older systems with 4 GB of total system RAM 256 MB 262144 Mid-range laptops with 8 GB of RAM 512 MB 524288 Standard high-performance cap (16 GB RAM) 1 GB 1048576 Power users, heavy multitasking (32 GB+ RAM) 2 GB 2097152 Extreme workstations, web developers The Benefits of Manual Optimization 1. Eliminating Memory Leaks on Low-End PCs How to Configure It When you navigate the

Before we change any settings, it is crucial to understand the two primary types of caches in Firefox and why you might want to favor one over the other.

in the configuration) that automatically scales the cache size based on the total physical RAM available on the device. Manual Configuration and Use Cases Users often venture into about:config to manually override this value for two primary reasons: Memory Constraints: browser

Adjusting browser.cache.memory.capacity is a powerful first step, but it is most effective when combined with a few other related optimizations.

One crucial point that is often misunderstood: browser.cache.memory.capacity only governs the —the storage for webpage resources you have downloaded. It does not limit all of Firefox’s memory usage. The browser also consumes RAM for DOM trees, JavaScript execution, rendering, extensions, and many other activities, none of which are affected by this setting. Several users have reported frustration when trying to use this preference as a global memory limiter, only to find that Firefox continues to use large amounts of RAM due to other factors. As one community expert succinctly put it, this setting is “just the network cache and does not govern any other memory usage”.