Skip to main content
Question Protected by CommunityBot
not a bug
Link
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60
Source Link

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.