Re: [w3c/ServiceWorker] Cache API Vary header processing should be clarified (Issue #1609)

I assume this is related:

In the spec algorithm for matching a cached item at [https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm](url), it is stated that each Vary header key listed in the Response shall be used to match the requestObject header value with the request's respective header value.

However, for Cache.put(), [https://w3c.github.io/ServiceWorker/#cache-put](url), the Vary header matching only checks for '*' and not any other header keys. This appears to lead to cache items for the same request url being overwritten by put(), although they should have been stored as separate cache keys based on the Vary header values.

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

Message ID: <w3c/ServiceWorker/issues/1609/1366227651@github.com>

Received on Tuesday, 27 December 2022 22:49:19 UTC