withCompression would overwrite Vary header with Accept-Encoding and discard the value set by the handler. This PR adjusts the behavior: if the Vary header was set to * (i.e. no caching allowed), * it will remain it's value, otherwise, we will add Accept-Encoding to the list.
withCompression
would overwriteVary
header withAccept-Encoding
and discard the value set by the handler. This PR adjusts the behavior: if theVary
header was set to*
(i.e. no caching allowed),*
it will remain it's value, otherwise, we will addAccept-Encoding
to the list.