[w3c/ServiceWorker] Abstracting cache matching (#1341)

We have a somewhat similar `matchAll` method in background fetch https://wicg.github.io/background-fetch/#background-fetch-registration and I'd like to use the same matching we use in service worker.

I've abstracted out the part that can determine true/false for a request and a stored request/response. In background fetch we may not have the response yet, so it's optional.

If you're happy with this PR, I'll port it to v1.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1341

-- Commit Summary --

  * Abstracting cache matching

-- File Changes --

    M docs/index.bs (73)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1341.patch
https://github.com/w3c/ServiceWorker/pull/1341.diff

-- 
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/pull/1341

Received on Friday, 10 August 2018 12:54:23 UTC