nuxt-community / pwa-module

Zero config PWA solution for Nuxt.js
https://pwa.nuxtjs.org
MIT License
1.23k stars 171 forks source link

If start_url exists in the manifest.json, precaching will always add start_url path, can it be changed to configurable? #543

Open daidaishuo opened 1 year ago

daidaishuo commented 1 year ago

in source code if (pwa.manifest && pwa.manifest.start_url) { options.preCaching.unshift(...normalizePreCaching(pwa.manifest.start_url)); }

When I use the ssr method to render application, some data will be acquired in the node server and injected into the html. If the user installs the pwa application and enters application from the icon, the page will not request the node server to obtain new html due to the start_url cache configuration.