On Mon, Jun 17, 2019 at 02:33:05PM +0200, Tim Düsterhus wrote: > > So in my opinion we should only emit "Vary: accept-encoding" when > > adding Content-Encoding. Am I missing something ? > > I believe you are correct that only sending the 'Vary' when actually > compressing is fine according to the RFC. Sending a compressed response, > when not requesting one is incorrect.
Absolutely, and that's the behaviour we need to fix (and to backport this fix). > Sending an uncompressed one, even > if theoretically a compressed would be supported is valid. If the proxy > / cache wants to it can compress the response itself. Agreed. And Varnish does compress for example so for it it's better that we only place a Vary when needed to let it do the best thing in other cases. Thanks, willy

