The service worker navigation preload request was cancelled before 'preloadResponse' settled
See original GitHub issueLibrary 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?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:22 (7 by maintainers)
Top Results From Across the Web
React.js error: The service worker navigation preload request ...
The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', ...
Read more >Worker navigation preload request was cancelled before ...
The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or ...
Read more >Getting The service worker navigation preload request was ...
I'm getting the error: The service worker navigation preload request was cancelled before 'preloadResponse' settled.
Read more >The service worker navigation preload request - Google Support
There are console errors showing "The service worker navigation preload request was cancelled before 'preloadResponse' settled.
Read more >Speed up service worker with navigation preloads - web.dev
Navigation preload lets you overcome service worker startup time by making requests in parallel.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
having the same issue
@philipwalton is there any update on this? We are also facing same issue