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
This is a bug first encountered in Qwik UI in preview and prod. It seems to me to be a build issue, not sure if it's Rollup, Vite or the optimizer.
When our application has multiple entry files and multiple context providers, it seems that the service worker starts fetching and pre-populating the cache for some bundles that are not needed on the page.
As showcased in the screenshot, I understand that the context.id-DK1jWIYg.js containing the "context-2" context is downloaded through the service-worker and placed in the cache for later use. Is this the intended behavior? I feel like Qwik should be smart enough to understand that context-2 is not needed on page /1, and therefore should only be loaded on page /2.
@notcod I provided a reproduction that shows this behavior on pnpm preview. But we do encounter a related issue in qwik UI that might be caused by cloudflare.
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
This is a bug first encountered in Qwik UI in preview and prod. It seems to me to be a build issue, not sure if it's Rollup, Vite or the optimizer.
When our application has multiple entry files and multiple context providers, it seems that the service worker starts fetching and pre-populating the cache for some bundles that are not needed on the page.
As showcased in the screenshot, I understand that the
context.id-DK1jWIYg.js
containing the"context-2"
context is downloaded through the service-worker and placed in the cache for later use. Is this the intended behavior? I feel like Qwik should be smart enough to understand that context-2 is not needed on page /1, and therefore should only be loaded on page /2.Reproduction
https://github.com/maiieul/qwik-service-worker-dowloads-external-bundles
Steps to reproduce
System Info
The text was updated successfully, but these errors were encountered: