How to ensure a Blazor web assembly is refreshed on new version?

Viewed 693

What do I need to do to force a web assembly Blazor application stored on an Azure static web site to refresh when a new version is uploaded (through GitHub)?

I am seeing conflicting and possibly outdated information: first this which does not do the trick for me.

Next this which seems to imply I need to add a second service-worker in addition to service-worker.published.js. Is that the case?

***Edit: I have added the following line at the top of service-worker.published.js and keep changing the number, with no effect.

const CACHE_VERSION = 0.822;

I'm sure it is a simple solution - which should really be the default by the way...

0 Answers
Related