add information about recommended minimum response size for gzip, closes influxdata/DAR#284 (#3973)

pull/3974/head
Scott Anderson 2022-04-22 16:41:11 -06:00 committed by GitHub
parent 6fd30837e6
commit ae7392b064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ In your request, set the following:
To compress the query response, set the `Accept-Encoding` header to `gzip`.
This saves network bandwidth, but increases server-side load.
We recommend only using gzip compression on responses that are larger than 1.4 KB.
If the response is smaller than 1.4 KB, gzip encoding will always return a 1.4 KB
response, despite the uncompressed response size.
1500 bytes (~1.4 KB) is the maximum transmission unit (MTU) size for the public
network and is the largest packet size allowed at the network layer.
{{% /note %}}
#### Flux - Example query request