Document updated on Feb 10, 2023
Automatic Gzip compression
KrakenD Enterprise compresses with gzip all traffic returned to the client when the request contains an Accept-Encoding: gzip
header.
The gzip is not applied when the header is missing, or when the Accept-Encoding
header contains a text/event-stream
value.
Gzip compression is unrelated to decompression when consuming content from your services. Decompression is also done automatically, but in all KrakenD flavours, not only Enterprise.
When the content is successfully compressed, the response contains a "Content-Encoding: gzip"
header
Gzip configuration
The gzip is always on unless you disable it in the router section as follows:
{
"version": 3,
"extra_config": {
"router": {
"disable_gzip": true
}
}
}
Fields of "router"
disable_gzip
boolean- *Enterprise only.. All the output to the end user on the Enterprise Edition uses gzip when accepted by the client. Use this flag to remove gzip compression.Defaults to
false