Currently, the offfline-manager register assuming it is included inside the index.html document at the root of the site (independently of the root being / or /gh-repo-name/). But if the user want to provide update checking from other pages not in the root of the site, the offline-manager need to reference the actual path for the worker without assumptions, the site-root option allows the manager to exactly know where the service worker is located.
Currently, the offfline-manager register assuming it is included inside the
index.htmldocument at the root of the site (independently of the root being/or/gh-repo-name/). But if the user want to provide update checking from other pages not in the root of the site, the offline-manager need to reference the actual path for the worker without assumptions, thesite-rootoption allows the manager to exactly know where the service worker is located.