[🐞] All bundles get prefetched with full priority in PrefetchServiceWorker resulting in error ERR_INSUFFICIENT_RESOURCES #6397
Labels
STATUS-2: missing info
Incomplete issue/pr template or missing important information
TYPE: bug
Something isn't working
Which component is affected?
Qwik Runtime
Describe the bug
When using the PrefetchServiceWorker, the service worker prefetches all bundles with full priority. This results in all requests running in parallel without being throttled by
$maxPrefetchRequests$
.In an app with more than ~600 bundles, many of the prefetch requests will throw an error
Failed to fetch
with(failed)net::ERR_INSUFFICIENT_RESOURCES
Reproduction
https://github.com/DustinJSilk/qwik-prefetch-priority
Steps to reproduce
Clone the reproduction url and run these commands:
$ ./generate.sh
$ pnpm i
$ pnpm build
Preview the app:
$ pnpm preview
Then in chrome
(failed)net::ERR_INSUFFICIENT_RESOURCES
and console errors)./generate.sh
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: