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
I am not sure if you intend to use this library only by a very specific user agent, but if you think of this middleware as of general purpose, there is this concern: user agent can set his preference in the Accept-Encoding header and the server should respect that; so, based on the header value, your middleware might skip compression and return the original content.
Hi!
I am not sure if you intend to use this library only by a very specific user agent, but if you think of this middleware as of general purpose, there is this concern: user agent can set his preference in the Accept-Encoding header and the server should respect that; so, based on the header value, your middleware might skip compression and return the original content.
The rules are described in the RFC: https://rfc-editor.org/rfc/rfc7231#section-5.3.4
The text was updated successfully, but these errors were encountered: