Closed JensLincke closed 8 years ago
@jgraichen, any ideas why the request was already answered?
I have not yet found a way to force the browser to wait for the service worker and really do pass every request to it. It's still trying to optimized things.
Could I figure out in the answer, if the browser did answer me prematurely and do myself wait for the service worker? So distinguishing it from actual fails handed me down from the service worker?
The request should raise an error as the domain name usually cannot be resolved.
DOMException: Failed to execute 'respondWith' on 'FetchEvent': The fetch event has already been responded to. at Error (native) at ServiceWorker.fetch (https://lively-kernel.org/lively4-jens/src/swx/swx.jsx!transpiled:110:31) at Module.fetch (https://lively-kernel.org/lively4-jens/src/swx/swx.jsx!transpiled:38:27) at https://lively-kernel.org/lively4-jens/swx-loader.js:59:19
Since the first request will start it, a second request will succeed.