How can i decompress gzip compressed response from backend before sending it to client?

Not applicable
 
2 3 3,849
3 REPLIES 3

Not applicable

Hi @Ankit Srivastava

In your request header you may be already sending in Accept-Encoding: gzip, in response headers you get Content-Encoding: gzip.

If you still don't see the content encoding, you may want to set the header in your Proxy response flow.

You may want to refer this - https://community.apigee.com/questions/18741/enabling-http-gzip-compression.html

I don't think this answers the question. If, like me, @Ankit Srivastava is adding accept-encoding:gzip header before sending to his target, to minimize traffic to/from the target, but the original request did NOT accept gzip, he HAS to unzip the target response before sending response back to client.


Has anyone found a solution to this yet?