I'm launching my app as a PWA to start, and have a mechanism to present a non-dismissable alert to a user when a new version is available. But in testing I'm finding that unless the PWA is removed completely and reinstalled, the latest published version doesn't load, and the old cached version remains. It seems that once the PWA is opened, it holds onto whichever version it loads.
If I refresh the web app in Safari the new version loads fine. I tried clearing out all Safari cache and website data to no avail. I know the service worker version is updated each time it's deployed, so it seems that the bookmark is caching the entire index file or something...
Does anyone know how to make this work?