I think it is a bad idea to use cache busting for your service worker by adding a version string to its file name. This is never mentioned in any tutorial and I've never seen this method out there in the wild.
You should rather use the no-cache
directive and the max-age
field in the response header for the service worker file.
But since I did not find a dedicated statement regarding this method I tried it out and it seems like if you change the service worker file it is hard to get rid of the old one. So I can see both files in the sources tab of the dev-tools.
But you won't see the new service worker in the application tab immediately, so I'm not sure, what hinders the new SW to get in charge and what it is actually waiting for.
Does anybody know, how browsers usually handle this situation?