-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
should Cache API Vary matching use combined header values? #991
Comments
Wait, why did Cache API use |
If http cache considers all headers, then I think the spec is mostly correct now. In regards to calling webidl calls, it seems fetch spec does not expose algorithms that can be used instead? |
I'd expect the Cache API to just operate on the data structure directly, as it does earlier on Query Cache as well, e.g., "If cachedResponse’s response’s header list contains no header named |
We can certainly add algorithms if Cache API needs particular abstractions that are likely reused elsewhere though. |
I think this can be closed with the remaining issue dealt with in #1609. @wanderview what do you think? |
SGTM. |
At some point the fetch spec was changed such that
Headers.get()
now returns combined values. The SW spec was usingHeaders.get()
for Vary header matching previously and I don't think it was updated to account for this change.What is the intention here? Should Cache API vary matching be performed on combined values (new fetch
get()
) or first header value (old fetchget()
)?@jakearchibald @annevk @inexorabletash
The text was updated successfully, but these errors were encountered: