Engrain by ByteRush

WEB.05.03 Senior

Quotas, persistence, partitioning and the Cache API

Comes up in: Web fundamentals, Frontend system design

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • navigator.storage.estimate()
  • best-effort vs persistent storage
  • eviction (LRU by origin
  • Safari's 7-day script-writable storage cap for sites without user interaction — cite WebKit)
  • storage partitioning by top-level site
  • Cache API
  • OPFS

Words you will know

quotaevictionstorage partitioningOPFS

What you will practise

  • show storage usage and request persistence

Interview questions this answers

  • What happens when a site exceeds its storage quota?
  • What is storage partitioning?