Re: [slightlyoff/ServiceWorker] `caches.match` search order (#862)

It isn't impossible, as `caches.matchAll` will give you them.

The current behaviour is ideal for updates.

1. V1 is running, taking cached assets from cache named "static-v1"
2. V2 installs, adding updated content to "static-v1", and becomes waiting
3. Page controlled by V1 requests "/"
4. V1 `respondWith(caches.match(event.request))`

Without the current behaviour, step 4 may result in V1 receiving V2's assets.



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

Received on Thursday, 31 March 2016 14:54:37 UTC