Offline first
Persist both the cache (IndexedDB) and the request queue (localStorage), so the app opens with data and keeps changes made offline across reloads.
Offline queue
Requests made offline wait in the queue and are sent in order when the app is back online.
Cache persistence
Persist the cache to localStorage so a reload shows data at once, without a request.
IndexedDB persistence
Persist large responses in IndexedDB with the cache lazyStorage, and show them from disk while the API is asked again.
Cache versions
Bump the cache version with a release, so persisted data in an old shape is dropped instead of breaking the new code.
Resume after reload
Keep offline mutations in a persistent dispatcher queue, so they survive a page reload and are sent once online.