Never rename the ServiceWorker script file
Sometimes this can be helpful, in particular in cases where you can't change the service worker itself, but it imports scripts (perhaps from another origin) that do change. In this case, changing the name of the service worker creates a "new" service worker that leads to the browser re-checking and re-downloading all dependencies. (More info.)