Hello,
preamble: Vue 3 adds a hash string to created distributable files (at least when having configured a Vue 3 porject with vue ui
) and changes that hash every time a change is detected inside a contributing source file.
Problem: the index.html
file which references the “hashed files” does not change and is still served from browser cache still containing former “hashed files” which themselves are still served from cache rendering Vue 3’s “hashes files” useless, AT LEAST when the Vue 3 project is also configures as a PWA.
Questions: 1. How can we achieve changed soruce files (js, css) get refreshed from the server when a new version of our “app” ist distributed (when the project is configured as a PWA).
2. How can we disable PWA functionality in a Vue 3 project and make sure the newly distributed app from us without PWA enabled is also updated in such a way for every client accessing this new app that the PWA (service worker) functionality gets deleted on their side?
Kind regards, and happy holidays!