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
Since demo is a dependency, demo.vue gets cached and it doesn't hit the server. But plugin-vue expects demo.vue to be processed before demo.vue?vue&type=script and it skips the transform.
Both @vitejs/plugin-vue and @vitejs/plugin-vue2 plugins have this issue.
If it fix in the plugins, you may need to add a fallback when loading the script(demo.vue?vue&type=script) to check if the corresponding Vue file(demo.vue) has already been loaded?
In my opinion, controlling Cache Control on certain files may be simpler and more adaptable to different situations?
Description
The feature
allow browser to cache npm deps
deps is very useful, but it has a problem like this reporeproduction steps:
pnpm install
http://localhost:5173/
devtools=>Network=> disable cache
not checked!Browser page will display errors.
Suggested solution
When send cached request, allow user define a callback or RegExp to disable some npm deps' cache
A possibly implementation:
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: