The API responses are returned in gzipped format. But by using Content-Encoding gzip, the burden of unzipping is on the user of the API. On the other hand if the server uses Transfer-Encoding gzip, many http client libraries (for eg. Python's urllib) will do the unzipping automatically. The server gets the same bandwidth savings.
Why Content-Encoding gzip rather than Transfer-Encoding gzip
Jyotirmoy Bhattacharya
- 293
- 1
- 2
- 6