Re: [w3c/ServiceWorker] Scope matching algorithm breaks sites that don't end in a slash (#1272)

Ping on this proposal.

To save time reading the above, the amended proposal is to change scope matching so any scope ending with a slash ("/abc/xyz/") also matches the URL without a slash ("/abc/xyz"), but not with any suffixes after that.

So:

* "/abc/xyz" matches "/abc/xyz/foo" and "/abc/xyz" and "/abc/xyz123".
* "/abc/xyz/" matches "/abc/xyz/foo" and "/abc/xyz", but does not match "/abc/xyz123".

This is to allow a site like Google Maps to use the scope "https://www.google.com/maps/", which would now match "https://www.google.com/maps" but not "https://www.google.com/mapsearch". Currently there is no way to do this.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1272#issuecomment-363990331

Received on Thursday, 8 February 2018 03:22:01 UTC