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.