~/talk

Extending Workbox: Custom strategies and plugins

Talkat Chrome Dev Summit 2020 · 2020-12-09..12-10· [web-platform, pwa]
slides:none on file

Workbox v6 adds a strategy base class you can extend to implement concrete behaviors like inflight request dedupe that collapses simultaneous fetches into one response and saves bandwidth, or a race cache and network strategy that checks both in parallel. Strategies use a StrategyHandler with methods like fetch and cachePut so plugins trigger lifecycle hooks such as fetchDidSucceed and handlerDidError; an example plugin returns a cached backup when a response isn’t 200. Strategies and plugins work with Workbox routing and can be published to npm.

AI-written summary · about

  1. 0:00Introduction to Workbox
  2. 1:33Custom caching strategies
  3. 5:27Developing Workbox plugins
  4. 7:17Choosing an approach
~/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.