-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vary: Accept-Encoding missing in zlib examples #25495
Comments
@Fishrock123 Hi! I'd like to help out here. I'm afraid I can't tell what the problem is exactly. Would the change be something like this?
EDIT: Oops, that's the client. |
@Fishrock123 @nigoroll Are you sure that this should happen? It’s not central to the point of the documentation, as it introduces the much bigger topic of HTTP caching into our compression docs. @DamianRivas I think this only makes sense for the server example, since |
@addaleax It is plain wrong to use the value of I am not sure what exactly you mean by It’s not central to the point of the documentation, in my mind documentation examples should be as simple as possible, but at any rate they should be correct. Ref: https://tools.ietf.org/html/rfc7231#section-7.1.4
|
@DamianRivas your example looks good to me, but I am not a node dev |
Co-Authored-By: mukulkhanna <[email protected]>
This has been fixed by #26308. |
Ref: https://github.com/nodejs/node/blob/master/doc/api/zlib.md#compressing-http-requests-and-responses
It appears to me that the examples lack setting the
Vary: Accept-Encoding
Response header.The text was updated successfully, but these errors were encountered: