- From: Jake Archibald <notifications@github.com>
- Date: Wed, 08 Jun 2016 04:52:23 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc:
Received on Wednesday, 8 June 2016 11:52:50 UTC
> 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?
I think it's to ensure the request you get out of the cache is, as much as possible, like the request you put in. I don't think we should use it for matching.
> ```js
> cache.put('foo#1', response1).then(() => cache.put('foo#2', response2));
> ```
I expect the cache to contain one entry (`response2`) after this.
---
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-224566776
Received on Wednesday, 8 June 2016 11:52:50 UTC