Re: [slightlyoff/ServiceWorker] Access to fragment identifiers (#854)

I'm confused while working on it. What's the point we store the fragment in the cache if we don't use it to match?

```js
cache.put('foo#1', response1).then(() => { cache.put('foo#2', response2); });
```
Should it make two entries ['foo#1', response1], ['foo#2', response2] in the cache map? Or should the second put replace the first entry resulting in a single entry ['foo#2', response2]?

`cache.matchAll('foo#3')` later will return a promise resolves with [response1, response2] or [response2], respectively.

What if we do `cache.addAll(['foo#1', 'foo#2', 'foo#3']);` and `cache.matchAll('foo#4');`?

If addAll creates three different entries, the matchAll is expected to return three identical response objects in an array? Or should it aggregate it to a single response object array?

Or the addAll above should create a single entry resulting in ['foo#3', response]?


---
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/854#issuecomment-224566122

Received on Wednesday, 8 June 2016 11:49:18 UTC