You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of the URLs within the source are absolutely, starting with /. This makes it more difficult than it needs be to deploy somewhere that isn't the root of a domain.
There's another case where / is used as the scope for the SW registration, and that's an anti-pattern. / will never be valid unless the registering page is also served from the top-level, and if that's the case, you might as well just leave it with the default scope of ./.
The text was updated successfully, but these errors were encountered:
Many of the URLs within the source are absolutely, starting with
/
. This makes it more difficult than it needs be to deploy somewhere that isn't the root of a domain.E.g.
xhr.open('GET', '/sounds/airhorn.mp3' );
would be more flexible if it werexhr.open('GET', 'sounds/airhorn.mp3' );
There's another case where
/
is used as thescope
for the SW registration, and that's an anti-pattern./
will never be valid unless the registering page is also served from the top-level, and if that's the case, you might as well just leave it with the default scope of./
.The text was updated successfully, but these errors were encountered: