How to remove Booster¶
This is the procedure for safely removing Repro Booster.
Steps¶
Switch off Repro Booster (to be performed by Repro)
Replace Service Worker file
Remove Repro Booster tag
Replace Service Worker file¶
Please change sw.js to the following comment-only description Service Worker of Repro Booster registered in the end-user's browser will be replaced by SW that does nothing sequentially and disabled.
// This file is an empty placeholder to safely remove sw.js.
// When installing another service worker with the same name, please overwrite this file.
Note
If you have merged the existing SW and Repro Booster description, please revert to the description before introducing Repro Booster.
Warning
Do not delete sw.js. This action is to safely disable the Service Worker registered in the browser. Please overwrite it when you install another SW with the same name.
Remove Repro Booster tag¶
Please replace the SW file and stop sending Repro Booster tags after a few days.
Note
Although Repro Booster is safely disabled by the above procedure, the SW that does nothing will remain in browsers that did not revisit the site before the Repro Booster tag was removed. To remove the SW registered in the browser, it is necessary to continually issue removal instructions and wait for the user to revisit, please refer to the following process for the procedure.
Complete removal of disabled browser SW (optional)¶
This is an optional task.
If you continue to distribute the following script for removing SWs by GTM or other means, the disabled SWs can be continuously removed.
<script>
navigator.serviceWorker.getRegistrations().then(serviceworkers => serviceworkers.forEach(sw => sw.unregister()))
</script>
Warning
Please note that this sample code removes all SWs registered at the site, so please be careful with other SWs.