You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compression is enabled, cowboy only sets accept-encoding in the list of headers of the vary header when content is actually compressed.
That is, a response to a request without the Accept-Encoding header will not contain vary: accept-encoding.
As far as I understand, it means for HTTP caches that the response to such a request can be returned even when the Accept-Encoding header is set. As a result, an HTTP cache could return a uncompressed response to an HTTP client that sets the Accept-Encoding header, which is suboptimal.
Not 100% sure about my interpretation of the RFCs here, some links that may help:
When compression is enabled, cowboy only sets
accept-encoding
in the list of headers of thevary
header when content is actually compressed.That is, a response to a request without the
Accept-Encoding
header will not containvary: accept-encoding
.As far as I understand, it means for HTTP caches that the response to such a request can be returned even when the
Accept-Encoding
header is set. As a result, an HTTP cache could return a uncompressed response to an HTTP client that sets theAccept-Encoding
header, which is suboptimal.Not 100% sure about my interpretation of the RFCs here, some links that may help:
The text was updated successfully, but these errors were encountered: