Closed Jxck closed 5 years ago
What makes you think it should be based on Content instead of Accept? AFAIK Variant is based on request headers. See, for instance: https://tools.ietf.org/html/draft-ietf-httpbis-variants-05#appendix-A.2
This example is correct. Variants header field values are request header based, as @twifkak mentioned.
https://tools.ietf.org/html/draft-ietf-httpbis-variants-05#section-2
The Variants HTTP response header field indicates what representations are available for a given resource at the time that the response is produced, by enumerating the request header fields that it varies on, along with the values that are available for each.
on 3.3.1. Parsing the index section https://wicg.github.io/webpackage/draft-yasskin-wpack-bundled-exchanges.html#index-section
it seems based on Content-Encoding/Language instead of Accept-Encoding/Language ?