1
When listing the files you want to cache with the service worker version, most of the time we put the style file, to be accessible offline.
With this, when there is a change of CSS, in production the application can suffer with this divergence of cache of "html/javascript" and css.
Even when you remove the css file from the cache listing, this break can happen.
In the PWA scenario, which solutions they usually use or the best solution they adopt so there is no layout break in a new version of a PWA?
Ex: add query string, when there is a change with a lot of chance of breaking and etc...
Thank you @hugocsl, I really liked this technique, it opened my mind to the possibilities. Searching found this with the term "query strings", and the coolest, serves for javascript tbm, in the same way.
– David
@David eh isso ai, da para usar ate com imagem rss, I myself discovered this to make the browser put a new favicon in the tab, favicon usually gets so impregnated in the cache that only so I could solve.
– hugocsl
Really, favicon gets/gets impregnated kkk vlw Bro !
– David