Browser & Web Performance · Senior · Question 58 of 75
What happens when an origin's storage exceeds the browser's quota or the device runs low on disk?
- 1The browser compresses the data automatically
- 2Writes always succeed and older data is kept
- ✓Correct answer: The browser may evict best-effort storage (IndexedDB, Cache Storage) for the whole origin, unless persistence was granted
Explanation
navigator.storage.persist() requests persistent storage; estimate() reports usage and quota. Offline apps must handle eviction.