From 691a678b1912599686205adaa0ae653cfa6390ee Mon Sep 17 00:00:00 2001 From: Ed Robinson Date: Fri, 29 Sep 2017 09:34:03 +0100 Subject: [PATCH] Improve compression documentation --- docs/configuration/entrypoints.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/configuration/entrypoints.md b/docs/configuration/entrypoints.md index ed8a08ede..9fe9799ff 100644 --- a/docs/configuration/entrypoints.md +++ b/docs/configuration/entrypoints.md @@ -171,6 +171,12 @@ To enable compression support using gzip format. compress = true ``` +Responses are compressed when: + +* The response body is larger than `512` bytes +* And the `Accept-Encoding` request header contains `gzip` +* And the response is not already compressed, i.e. the `Content-Encoding` response header is not already set. + ## Whitelisting To enable IP whitelisting at the entrypoint level.