vite-pwa / vite-plugin-pwa

Zero-config PWA for Vite
https://vite-pwa-org.netlify.app/
MIT License
3.22k stars 211 forks source link

I have an issue with dynamic import after new release #778

Open samgholipoor opened 2 weeks ago

samgholipoor commented 2 weeks ago

Hello guys,

I faced an issue with pages that are lazy loaded and split chunked in new releases. after every new release when users navigate to pages that never touch this page before gets the following error or 404: "Failed to fetch dynamic import module: ..."

I implement cache-control header for pages, however users never see the certain page before this page is not in the cache. how can I solve this problem? is precaching a good solution?