cubicweb #2105812 Vary HTTP Response header [validation pending]

When any kind of content-negociation header is used (Accept, Accept-encoding, Accept-language, etc.), a corresponding Vary response header should be set.

For instance, if language negociation is turned on, and the client sends the following request headers:

Accept-Language     fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3

The response should encloses a Vary header:

Vary: Accept-Language

This would allow intermediate cache servers (e.g. Varnish) to handle the "1 url, several possible representations" case correctly.

See rfc2616 fore more details.

prioritynormal
typeenhancement
done in3.20.0
load0.250
load left0.000
closed by#6bcb460826cc [web] set Vary response header to "Accept-Language" when using content negotiation
patch[web] set Vary response header to "Accept-Language" when using content negotiation [applied]