1 2 3 4 5
onfetch = function(e) { if (e.request.url.indexOf("intercept-this") != -1) { e.respondWith(new Response("intercepted")); } }