Open
Bug 2082596
Opened 1 month ago
Updated 1 month ago
Consider increasing the size of the in-memory HTTP cache
Categories
(Core :: Networking: Cache, task, P2)
Core
Networking: Cache
Tracking
()
NEW
People
(Reporter: acreskey, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: perf, Whiteboard: [necko-triaged] [necko-priority-next])
The memory-only pool of the HTTP cache holds private browsing entries, no-store responses, and anything else marked INHIBIT_PERSISTENT_CACHING. Its size comes from browser.cache.memory.capacity; the default of -1 auto-sizes it from physical RAM in CacheObserver::MemoryCacheCapacity, capped at 32 MB. That cap was chosen a long time ago and is small for current machines.
When the pool goes over its limit, CacheStorageService::MemoryPool::OnMemoryConsumptionChange arms the purge timer, and PurgeExpiredOrOverMemoryLimit sweeps expired entries and then evicts by frecency.
A small pool means private browsing sessions lose cached resources sooner, and no-store responses that are still being used can be evicted.
Some ideas:
- raising the 32 MB cap, or scaling the auto-size curve with RAM, perhaps more aggressively on desktop than on Android
- measuring hit rates and eviction counts in private browsing before and after
Updated•1 month ago
|
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [necko-triaged] [necko-priority-next]
You need to log in
before you can comment on or make changes to this bug.
Description
•