Reputation: 369
There is a issue raised by one of our client who is using our Rest based API that whenever he is sending a post request to our server without AcceptEncoding http header but he is getting Compressed content in return. I checked the IIS logs on our API server which addressed his request and the request received on the server has come with a Accept-Encoding(http header) as set to gzip. In between the client machine and our server sits intermediaries(proxies) and load balancer. which network tracing tool should I use for investigating as to where this http header is getting added.
Upvotes: 0
Views: 182
Reputation: 1426
One solution to avoid an HTTP message to be compressed is to add Cache-Control: no-transform
to the request headers to avoid payload alteration by proxies as stated in RFC 7234 section 5.2.1.6.
Also, Via
header may contain useful comments that can help when looking for what did each proxy add to the request.
Upvotes: 1