~/talk

Go Offline with Service Workers

Talkat JSUnconf 2016 · 2016-04-23..04-24· [pwa, web-platform]

Service workers replace AppCache with a programmatic proxy that runs on HTTPS (localhost excepted), lets code register via navigator.serviceWorker.register, manage caches with the caches API, and intercept fetch with event.respondWith. The demo shows versioned caches, the need to Response.clone() when storing and returning responses, lifecycle hooks using waitUntil, and strategies like network-first and cache-first (plus racing network vs cache). Push, background sync and geofencing are shown as working next-step features and demos are hosted on HTTPS.

AI-written summary · about

  1. 0:00Start
  2. 1:05AppCache Manifest - The unloved child
  3. 6:19Prerequisites
  4. 8:51Adding static contents to the cache (a)
  5. 9:53Adding static contents to the cache (b)
  6. 12:26Taking a break...
  7. 19:01Other Service Worker-related Specifications
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.