Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefetch not working if there is a Service Worker registered #317

Open
robertgr991 opened this issue May 15, 2024 · 1 comment
Open

Prefetch not working if there is a Service Worker registered #317

robertgr991 opened this issue May 15, 2024 · 1 comment

Comments

@robertgr991
Copy link

While trying to implement Speculative loads, I encountered the failure "The URL was not eligible to be prefetched because there was a registered service worker for that origin, which is currently not supported.". The prefetch urls are only "same-site". The Service Worker is used to cache fonts, JS and CSS resources. If the worker is disabled, speculations works as expected.

I've tried to find information on this error but couldn't find anything. <link rel="prefetch"> doesn't cause this issue.

Does anyone have any input on this?

Screenshot 2024-05-15 113847

@jeremyroman
Copy link
Collaborator

Yes, this is currently a shortcoming of the Chromium implementation and I believe also the spec, one which we should fix.

@hiroshige-g I believe this corresponds to this Chromium bug and this document. Is anything else required to track this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants