Client-side storage
Choose the right storage and understand limits, security and eviction.
- WEB.05.01Cookies in depthCoreMid-level12 min
- WEB.05.02localStorage, sessionStorage and IndexedDBCoreJuniorBeing written
- WEB.05.03Quotas, persistence, partitioning and the Cache APISeniorBeing written
Interview questions in this module
- Compare cookies, localStorage, sessionStorage and IndexedDB.
- What do
HttpOnly,SecureandSameSitedo? - Where should you store an auth token in a SPA? What are the trade-offs?
- How do you sync state between tabs?
- What happens when a site exceeds its storage quota?
- What is storage partitioning?