Jeff Posnick
Jeff Posnick
If you'd like to access the body of a failed `POST`/`PUT` request in the event of a failure, you need to [`clone()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/clone) the request before it's sent to the network....
Does the answer at https://stackoverflow.com/a/67537862/385997 help? If so, we can get that example moved into the docs so that it's easier to find.
Inside of a service worker script, you should use ``` declare const self: ServiceWorkerGlobalScope; ``` (and also make sure the [`'webworker'` `lib` is included](https://github.com/microsoft/TypeScript/issues/14877#issuecomment-493729050) in your TypeScript compilation). You should...
I am not 100% sure how to help you, as we're wading into TypeScript setup issues that are unrelated to Workbox. But I can tell you that `skipWaiting()` is defined...
Have you considered using a [global `error` handler](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror) in the `window` context to capture and report back problems? If there's something that fails to load due to service worker issues,...
Sorry, I didn't realize the connection with #1528. We can follow up there. ```sh Failed to update a ServiceWorker: ServiceWorker script evaluation failed ``` is the sort of error you'd...
I like it! And then we can continue serving the content cache-first once it actually gets requested from the network because it's used for the first time on a page....
If you want to dip your toes in, sure! I'd imagine it would involve creating a new option and treating it in a similar fashion to [`staticFileGlobs`](https://github.com/GoogleChrome/sw-precache/blob/master/lib/sw-precache.js#L145), except that instead...
See https://github.com/WICG/netinfo/issues/42, which tracks exposing the information that we'd need to make that determination inside the `install` handler.
As a workaround, I'd suggest omitting `babelPresetEnvTargets` from your configuration, and explicitly running your `babel` configuration against your generated service worker file after the `webpack` compilation completes. Alternatively, you can...