question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The service worker navigation preload request was cancelled before 'preloadResponse' settled

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

15reactions
MaxAstcommented, Oct 15, 2019

having the same issue

4reactions
rockeynebhwanicommented, May 12, 2020

@philipwalton is there any update on this? We are also facing same issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found