Re: [ServiceWorker] should scope matching do substring comparison within a path element? (#734)

I don't understand the problem? If there are service workers for both those scopes, the scopeislong one will match every path that starts with /some/scopeislong while the other service worker will match every other path that matches /some/scope (including /some/scopeisalsolong). That seems perfectly reasonable to me.

Although I do agree that that step is confusingly written. It almost reads like it is asking for the longest scope where key.startsWith(clientURLString) is true, while it should be the longest scope where clientURLString.startsWith(key) is true.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/734#issuecomment-132336711

Received on Tuesday, 18 August 2015 20:14:55 UTC