mime_type
Syntax
mime_type = minimum_doc_size:[compression_level] Description
Enables or disables HTTP compression based on the mime-type of the response and the size of the returned document.
Options
- mime_type
- The mime_type can contain a wild card pattern such as an asterisk ( * ) for the subtype, or it can be "*/*" to match all mime-types.
- minimum_doc_size
- The minimum_doc_size is an integer than can be positive, negative or zero. A size of -1 means do not compress this mime-type. A size of 0 means to compress the document regardless of its size. A size greater than 0 means to compress the document only when its initial size is greater than or equal to minimum_doc_size.
- compression_level
- The compression_level is an integer value between 1 and 9. The larger number results in a higher amount of compression. When compression-level is not specified, a default level of 1 is used.
Usage
This stanza entry is optional.
Default value
*/* = -1
Example
image/* = -1
text/html = 1000