Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Assignees
philipwalton
Labels
@kevmittal

Description

@kevmittal

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp