Skip to main content

3 docs tagged with "storage"

View all tags

Browser storage — what changes depending on where you put it

This chapter compares localStorage, sessionStorage, and cookies across five axes — whether they reach the server, what separates them, how long they last, how the size limit applies, and whether tabs share them. It covers why the capacity numbers run in opposite directions as floors and ceilings, and where to put authentication tokens.

IndexedDB and the Cache API — large data, and the conditions for disappearing

This chapter covers IndexedDB and the Cache API for data that does not fit in 5 MiB, starting from the gap between the storage key the spec defines and the key implementations actually use, and from the fact that "stored" and "still there" are not the same. It covers how browsers divide data in third-party contexts and what persist actually means.