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
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it. Join my free newsletter and you get this course plus every other book and course I published.
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it.
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.
Course 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.