On Sep 9, 2026, at 3:50 PM, Mark Nottingham <mnot@mnot.net> wrote:
>
>
>> On 10 Sep 2026, at 2:04 am, Roy T. Fielding <fielding@gbiv.com> wrote:
> [...]
>> If multiple encodings are available for GET on the same URI, then Vary is
>> required by RFC9110. Not "this implies"; be specific: "Note that a resource
>> supporting multiple content codings would imply that responses Vary on
>> Accept-Encoding (see Section 12.5.5 of [RFC9110])."
>
> A resource that supports one content coding also needs to send Vary, as it also needs to support the identity encoding.
Nope; identity is one content coding. A resource that is only available in
the gzip encoding, for example, is always going to be in a message with
a Content-Encoding of "gzip", and thus does not need to send Vary because
the representations do not vary (no matter what advisory info a client might
send in the Accept-Encoding request field).
Yes, it's confusing to talk this way about identity, but it is precise. ;-)
Cheers,
....Roy