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
Couper sends 23 bytes of body (plus 22 bytes for the Content-Encoding header).
Expected behavior
Very small responses like that should not be gzip'ed, regardless of the client's accept-encoding header.
We should use a minimal body length before choosing gzip. 60 bytes could be a good start. If the response to be send is shorter, don't gzip, don't set Content-Encoding: gzip and don't add accept-encoding to the Vary list.
The text was updated successfully, but these errors were encountered:
Describe the bug
gzip is means to make a response smaller. However, there is a small overhead for gzip itself making it unsuitable for very small responses.
To Reproduce
0.8
*.hcl
. Remove sensitive data.curl
call for reproductionCouper sends 23 bytes of body (plus 22 bytes for the
Content-Encoding
header).Expected behavior
Very small responses like that should not be gzip'ed, regardless of the client's
accept-encoding
header.We should use a minimal body length before choosing gzip. 60 bytes could be a good start. If the response to be send is shorter, don't gzip, don't set
Content-Encoding: gzip
and don't addaccept-encoding
to theVary
list.The text was updated successfully, but these errors were encountered: