You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A GET request, which fits the NetworkOnly strategy in the workbox config fails with the following error: FetchEvent.respondWith received an error: no-response: no-response :: [{"url":"https://.../latest.json","error":{}}]
Expected behaviour
The service worker should handle the GET request correctly.
What we tried to solve this
Changing the regex in the vite-config to match the entire URL for this strategy.
Environment information
Describe the bug
A GET request, which fits the NetworkOnly strategy in the workbox config fails with the following error:
FetchEvent.respondWith received an error: no-response: no-response :: [{"url":"https://.../latest.json","error":{}}]
Expected behaviour
The service worker should handle the GET request correctly.
What we tried to solve this
babelPresetEnvTargets
, and setmode
to development in theworkbox
part of thevite.config.js
As the service worker just uses
workbox.registerRoute
to handle the route, I suspect, that the error roots somewhat deeper.Writing the service worker manually resolves the issue, but we would prefer to use the standard libraries.
Configuration
Screenshots
The text was updated successfully, but these errors were encountered: