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

I understand the use case but I'm a bit reluctant to add intelligence/exceptions to the scope-matching algorithm.

It could conceivably break some assumptions in code if suddenly document URL can be shorter than the scope.

I agree the real solution is to do maps.google.com, or as a workaround can they claim all of "maps*" (i.e., move mapsearch somewhere else?)

Another workaround is two service workers: one at maps and one at maps/, and have maps redirect to maps/ (though that will incur two service worker startup costs).

-- 
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-364031857

Received on Thursday, 8 February 2018 08:02:52 UTC