~/talk

The perfect Service Worker. How to design it?

Talkat GDG DevFest Poland 2018 in Wrocław · 2018-10-26..10-27· [pwa, web-platform]
slides:none on file

Designs a Service Worker strategy around concrete choices: use Workbox for pre-cache with content hashes, prefer pre-caching for static, versioned assets and runtime caching for user‑visited pages and decorative images with limits like maxEntries=50 and max‑age to prevent unbounded growth. Measure app footprint in DevTools Application → Clear Storage (example sizes move from ~154 KB after install to ~1.4 MB after navigation). Use on‑demand caching for user‑saved items, separate caches for critical vs optional resources, and avoid “cache everything” to respect bandwidth and storage.

AI-written summary · about

  1. 0:00Start
  2. 2:43Everything depended on network
  3. 3:08Lie-Fi = you get a mess
  4. 6:01Service Worker is a proxy
  5. 7:45Size is one of the core advantages of PWA
  6. 12:28Be mindful of used resources
  7. 12:49Have a plan
  8. 13:12Two parts of the strategy
  9. 14:24Cut the fat
  10. 14:56Don't cache, trash!
  11. 20:01Be selective
  12. 20:18When to cache
  13. 23:41Use content versioning
  14. 23:52Precaching pros&cons
  15. 25:59Runtime caching pros&cons
  16. 27:23Control the size
  17. 31:53Custom handler
  18. 34:23Find your balance
  19. 35:03Summary
~/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.