Browser.cache.memory.capacity ((install)) ◎
In simple terms, browser.cache.memory.capacity is the master control knob for the in Firefox. This setting determines, in kilobytes (KB), the maximum amount of your computer's RAM (Random Access Memory) that Firefox is allowed to use for storing cached web content.
Source: The ArchWiki Firefox Tweak Guide provides comprehensive details on these configurations [5.1]. Related Settings
Changing the preference is one thing. Verifying it is another.
Example Allocation Conversions: * For a 64 MB cache ceiling -> Enter: 65536 * For a 256 MB cache ceiling -> Enter: 262144 * For a 512 MB cache ceiling -> Enter: 524288 Use code with caution. Optimizing for Specific Use Cases 1. Legacy and Low-RAM Hardware Browser.cache.memory.capacity
: If the preference does not exist, select the Integer radio button, type the full string name, and click the + (Add) icon.
You can set this preference to any integer, which represents the cache size in kilobytes (KB) Google Groups (Default):
By default ( -1 ), Firefox caps memory cache aggressively. If Firefox is using 4 GB of RAM, it's due to web content (heavy JavaScript, video streams, leaked memory in tabs), not the memory cache. In simple terms, browser
For complete control over caching, you may want to know about two other preferences that work alongside browser.cache.memory.capacity :
When you navigate the web, Firefox stores data in two places: your hard drive (disk cache) and your RAM (memory cache).Reading data from RAM is exponentially faster than reading it from a solid-state drive (SSD) or a mechanical hard drive (HDD).
If you are running multiple heavy applications or browsing on an older laptop with limited RAM, your browser can easily consume enough memory to slow down your entire operating system. By capping browser.cache.memory.capacity , you force the browser to release RAM earlier, preventing it from starving other active programs. 2. Boosting Performance (For High-Spec PCs) Related Settings Changing the preference is one thing
Solid-state drives feature a finite number of Program-Erase (P/E) cycles, meaning heavy write loads can gradually degrade the health of the drive over time.
: Some users disable this ( false ) to force Firefox to run entirely in RAM for privacy or to prevent wear on older SSDs.
In the quest for a faster web browsing experience, most users chase after the usual suspects: a faster internet connection, ad-blockers, or the latest hardware. However, lurking beneath the surface of Mozilla Firefox is a powerful, often-overlooked configuration setting: .
No. Changing the value does not clear existing cache entries. Use about:preferences#privacy → "Clear Data" to clear caches.