Send and receive compressed traffic using gzip

You can send bid requests and receive bid responses that are compressed using gzip. By using bid compression, you can see a 20-30% reduction in bandwidth utilization which may contribute to lower latency, infrastructure costs, and fewer timeouts. To start sending and receiving compressed traffic using gzip:

Number 1 icon

You must include the following HTTP headers in bid requests to indicate that you are sending gzipped requests to Index and want to receive gzipped responses from Index:

  • Content-Encoding: gzip: This header specifies that the payload in the request body utilizes gzip compression.

  • Accept-Encoding: gzip: This header specifies that you accept gzip and want to receive gzip compressed bid responses from Index.

For more information about HTTP headers, see HTTP Headers.

Number 2 icon

Index adds the Content-Encoding: gzip HTTP header to compressed bid responses to specify that it is a compressed response.