workbox
workbox copied to clipboard
Unable to use `networkTimeoutSeconds` with `NetworkOnly` strategy
Library Affected: workbox-webpack-plugin
Browser & Platform: all browsers
Issue or Feature Request Description:
My goal is to have the SW request the network for all pages, but if it fails, I want it to fall back to a pre-cached template I have. This works fine using NetworkOnly-strategy, but I would like to include a timeout for cases where the server is taking a super long time or is down.
The docs here say it should work, but it doesn't.
Using workbox 7, the error is the following:
ERROR in Unable to generate service worker from template. 'When using networkTimeoutSeconds, you must set the handler to 'NetworkFirst'.'