Assah Bismark

Web

intercept fetch requests in JavaScript

How to intercept fetch requests in JavaScript.
I'm learning service workers. I wanted to start with one that intercepts calls to a and returns "Hello World". Here's the initial recipe I came up with. contained this: This is using the service worker registration boilerplate from MDN. Then my service worker script itself in just does this: You ...More ›