demo · v131

fetch handler races cache + network

The auto-preload mode kicks off the network fetch the moment the navigation starts, before the SW even boots. Inside fetch, you race a caches.match() against the preloaded network response. Whichever resolves first wins. The slider tunes how slow the network leg is.

800 ms 120 ms

without auto-preload (browser blocks on SW)

with auto-preload (race in parallel)

see also