Most endpoints support HTTP response compression, which can speed up requests by decreasing the amount of data that needs to be transferred. In many cases, this is done automatically, but if you need to confirm whether it is working, the details are as follows:
- The request must provide an
Accept-Encodingheader with the compression formats your HTTP client supports. For example,Accept-Encoding: gzip, deflate, br, zstd- Many HTTP clients, including browsers like Google Chrome, set this header automatically.
gzipis the only encoding Arcadia supports currently.
- If the header includes a compression format that Arcadia supports (
gzip), the response will be compressed with that encoding and will include the headerContent-Encoding: gzip- Many HTTP clients decompress the response automatically based on the Content-Encoding header.
- If the response did not include the
Content-Encodingheader, then it was not compressed.
