demo · v140
Route Matrix
A registered route table. Type a URL to see which rule fires, which source serves it, and what the resulting timing entry looks like. Catches the "why did my offline page serve a 200 from network" class of bug at a glance.
| # | condition | source | verdict |
|---|
self.registration.routes.add([
{ condition: { urlPattern: "/api/*" }, source: "fetch-event" },
{ condition: { urlPattern: "/assets/*" }, source: "cache" },
{ condition: { urlPattern: { search: "?cb=*" } }, source: "network" },
{ source: "race-cache-and-network" },
]);
see also
- SW Static Router Timing Info — feature index