- Notifications
You must be signed in to change notification settings - Fork858
Closed
Description
Library Affected:
workbox-navigation-preload (4.3.1)
Browser & Platform:
Google Chrome 75.0.3770.142 on macOS 10.14.6
Error Description:
When usingworkbox.navigationPreload.enable(), it throws this error in the console.
The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle.service-worker.js:
workbox.navigationPreload.enable()varroute=newworkbox.routing.NavigationRoute(newworkbox.strategies.StaleWhileRevalidate({cacheName:'test',plugins:[newworkbox.expiration.Plugin({maxEntries:1})]})workbox.routing.registerRoute(route)
Am I doing anything wrong?