Skip to main content
2 of 2
not a bug
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60

Why Content-Encoding gzip rather than Transfer-Encoding gzip

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.