-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Labels
Breaking ChangeDenotes a "major" semver change.Denotes a "major" semver change.BugAn issue with our existing, production codebase.An issue with our existing, production codebase.workbox-navigation-preload
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 using workbox.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()
var route = new workbox.routing.NavigationRoute(new workbox.strategies.StaleWhileRevalidate({
cacheName: 'test',
plugins: [
new workbox.expiration.Plugin({
maxEntries: 1
})
]
})
workbox.routing.registerRoute(route)
Am I doing anything wrong?
ntsd
Metadata
Metadata
Assignees
Labels
Breaking ChangeDenotes a "major" semver change.Denotes a "major" semver change.BugAn issue with our existing, production codebase.An issue with our existing, production codebase.workbox-navigation-preload