Skip to main content
Version: v7

Compression

Configure compression or decompression of responses


Overview

Haltdos provides you the ability to compress or decompress the responses which often significantly reduce the size of transmitted data and increase performance. The compression level is defined based on which responses are compressed to an extent. It also allows configuring other settings for compression.

How to Use:

  1. Go to WAF > Zones > Listeners > Performance > Compression

  2. Add the Compression configuration and click Save Changes.

PARAMETERSACCEPTED VALUESDEFAULT
Enable CompressionEnabled/DisabledDisabled
Compression LevelInteger (1-9)1
Min Length CompressionLength in bytes1000
Disable Browser CompressionRegexblank
Minimum HTTP versionDropdownHTTP 1.1
URI FilterURI RegexBlank
Proxy Response Filterexpired/no-cache/no-store/private/no_last_modified/no_etag/any/authexpired, no-cache, no-store, private, no_last_modified, no_etag, any, auth
Mime Type FilterAny mime typetext/xml , text/plain
De-CompressionEnabled/DisabledDisabled

Description:

Enable Compression: To enable compression, enable the toggle button. It compresses the responses to an extent.

Compression Level: The level of compression to be achieved. The greater the number more the compression. The range is 1 - 9.

Min Length Compression: This field specifies the minimum length of the response to be compressed.

Disable Compression: Specify one or more regular expressions (Regex) that will be evaluated on HTTP requests and disable compression for matching requests.

Minimum HTTP Version: Specify the minimum HTTP version from which compression will be applied. The response above the specified version is compressed.

URI Filter: This field allows to perform compression on the specific URI using one or more regex. If the field is empty then no filter perform.

Proxy Response Filter: This field allows to perform compression on the specific type of HTTP requests.

Mime Type Filter: By default, WAF compresses responses only with MIME-type text/html. To compress responses with other MIME types then include them in this field.

De-Compression: Some clients do not support responses with the gzip encoding method. At the same time, it might be desirable to store compressed data, or compress responses on the fly and store them in the cache. To successfully serve both clients that do and do not accept compressed data, WAF can decompress data on the fly when sending it to the latter type of client.