# Compressor¶

This extension may be referenced by the qualified name envoy.filters.http.compressor

Note

This extension is intended to be robust against untrusted downstream traffic. It assumes that the upstream is trusted.

Compressor configuration overview.

## extensions.filters.http.compressor.v3.Compressor¶

[extensions.filters.http.compressor.v3.Compressor proto]

{
"content_length": "{...}",
"content_type": [],
"runtime_enabled": "{...}",
"compressor_library": "{...}"
}

content_length

(UInt32Value) Minimum response length, in bytes, which will trigger compression. The default value is 30.

content_type

(string) Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc. When this field is not defined, compression will be applied to the following mime-types: “application/javascript”, “application/json”, “application/xhtml+xml”, “image/svg+xml”, “text/css”, “text/html”, “text/plain”, “text/xml” and their synonyms.

(bool) If true, disables compression when the response contains an etag header. When it is false, the filter will preserve weak etags and remove the ones that require strong validation.