Register(200)
intercept(200)
Not Found(404)
offline(500)

A fetch event fires every time any resource controlled by a service worker is fetched, which includes the documents inside the specified scope, and any resources referenced in those documents (for example if index.html makes a cross origin request to embed an image, that still goes through its service worker.)

You can attach a fetch event listener to the service worker then call the respondWith() method on the event to hijack our HTTP responses and update them with your own magic.