Free course
Browser Storage Course
Build reliable browser state with cookies, Web Storage, IndexedDB, Cache Storage, quotas, persistence, and origin-private files.
Prerequisites: HTML, JavaScript and HTTP
Your progress
of lessons completed.
Course completed.
What you'll learn
Build and test a local-first field-notes app with deliberate storage ownership, safe upgrades, offline resources, export, cleanup, and recovery.
Take this course offline
Subscribe to my newsletter to get every free book and course in PDF and EPUB format.
Get the downloadsCourse contents
Choose and observe storage
Map each value’s owner and lifetime, understand browser boundaries, and inspect existing state.
Cookies over HTTP
Trace cookie transport, scope values narrowly, secure sessions, and handle partitioned state.
Web Storage
Use localStorage and sessionStorage for small values, then handle invalid data and tab conflicts.
IndexedDB
Store structured notes with keys, indexes, transactions, and versioned schema upgrades.
Offline files and durability
Cache responses, measure quota, request persistence, store files, and design recovery.