When an app is updated, the version should change which will alter the path of the service worker. Existing clients will need their requests for the old version to be mapped to the new one in order to trigger the update (may just need a redirect)