Design principles and implementation strategies for better offline experience
summary
Argues that web apps must shift from synchronous request–response to a persisted global model that accepts user actions locally and syncs later, using service workers plus the Cache API and IndexedDB for durability; shows caching strategies—network-first, cache-first, stale-while-revalidate and network-with-timeout—and explains background sync queues so actions survive app kills and offline. Notes AppCache and FileSystem pitfalls, wide service worker support but gaps in Internet Explorer and older Safari, and claims this approach measurably prevents lost work and speeds perceived UX.
AI-written summary · about
chapters (23)
- 0:00Start
- 1:04We live in a connected world
- 1:43Internet speed worldwide
- 2:31Working while travelling
- 16:22Persist model locally, sync with network
- 18:07HTTP Headers
- 19:13Cookies
- 20:41Application cache
- 24:17Web SQL database
- 27:19Service Worker lifecycle
- 28:00Service Worker - register
- 28:24Service Worker - install
- 29:10Service Worker-fetch
- 30:07Service Worker specifics
- 31:28Network only
- 32:04Cache only
- 32:52Cache, falling back to network
- 33:17Network, falling back to cache
- 33:54Cache & update
- 34:41Cache, update, refresh
- 35:33Network & cache race
- 37:14Background sync
- 38:11Are Service Workers ready?








