Browser.cache.memory.capacity
Adjusting this setting can have significant effects on browser performance:
For the average user running a modern operating system with 8 GB of RAM or more, leaving browser.cache.memory.capacity at its default value of -1 is the safest and most efficient choice. The browser's automated resource management has evolved significantly over the years to balance speed and memory usage dynamically.
can be much larger (gigabytes, if you wish) and persists across browser sessions, but it is slower to read from and write to. Frequent disk writes—especially on older SSDs—can theoretically shorten the drive’s lifespan, although for modern SSDs this is rarely a practical concern for normal users.
: Must be set to true for the capacity setting to function. Browser.cache.memory.capacity
If you run Firefox on an older computer, a budget laptop, or a virtual machine with limited RAM (4 GB or less), Firefox might compete with your operating system for memory. Capping the memory capacity to a lower value (like 100 MB / 102400 ) or setting it to 0 prevents Firefox from consuming too much system memory. This keeps your overall operating system running smoothly, though it may slightly slow down page reload times in the browser. Related Cache Settings to Consider
| Value | Meaning | Use Case | | :--- | :--- | :--- | | | Automatic (Dynamic) | Recommended for most users. The browser scales the cache based on total system RAM (e.g., using more RAM on a 32GB system vs. an 8GB system). | | 0 | Disabled | Prevents the browser from using RAM for caching. Not Recommended. This forces the browser to re-parse resources constantly, significantly slowing down navigation. | | Any Positive Integer | Manual Limit (in KB) | Sets a hard limit. Useful for limiting RAM usage on older machines. Example: 1048576 sets the limit to roughly 1 GB. |
Firefox uses both caches cooperatively. The disk cache serves as the “backup warehouse” for resources that are likely to be reused across sessions, while the memory cache functions as the “express counter” for immediate, frequent access. The two caches have separate preferences controlling their maximum sizes: browser.cache.memory.capacity for the memory cache and browser.cache.disk.capacity for the disk cache. Adjusting this setting can have significant effects on
Use the search bar at the top of the page to search for: browser.cache.memory.capacity
RAM is significantly faster than any storage drive, making data retrieval nearly instantaneous.
While browsers have automatic management systems, power users often turn to about:config to fine-tune performance. One of the most important, yet misunderstood, settings for memory management is . What is browser.cache.memory.capacity ? Capping the memory capacity to a lower value
You will see a warning screen stating that changing these preferences can impact performance and security. Click "Accept the Risk and Continue."
When you visit a website, the browser follows these steps to cache resources:
Because this setting is not exposed in the standard Firefox options menu, you must access the advanced configuration editor. Step 1: Access the Configuration Editor Open a new tab in Firefox. Type about:config into the address bar and press .