I have the following code from my service worker:
self.addEventListener('fetch', function (event) { var fetchPromise = fetch(event.request); fetchPromise.then(function () {
However, it does some strange things in the dev console and seems to do asynchronously instead of a script instead of synchronous (which is bad in this context).
Is there a way to listen when a request is executed without calling fetch(event.request) manually?
For instance:
source share