Apache HTTP Server Version 2.4

| Description: | Compress content before it is delivered to the client |
|---|---|
| Status: | Extension |
| Module Identifier: | deflate_module |
| Source File: | mod_deflate.c |
The mod_deflate module provides
the DEFLATE output filter that allows output from
your server to be compressed before being sent to the client over
the network.

Supported Encodings
Sample Configurations
Enabling Compression
Dealing with proxy servers
Serving pre-compressed
content
DeflateAlterETag
DeflateBufferSize
DeflateCompressionLevel
DeflateFilterNote
DeflateInflateLimitRequestBody
DeflateInflateRatioBurst
DeflateInflateRatioLimit
DeflateMemLevel
DeflateWindowSizeThe gzip encoding is the only one supported to ensure complete compatibility
with old browser implementations. The deflate encoding is not supported,
please check the zlib's documentation
for a complete explanation.
Some web applications are vulnerable to an information disclosure attack when a TLS connection carries deflate compressed data. For more information, review the details of the "BREACH" family of attacks.
This is a simple configuration that compresses common text-based content types.
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
Some web applications are vulnerable to an information disclosure attack when a TLS connection carries deflate compressed data. For more information, review the details of the "BREACH" family of attacks.
Compression is implemented by the DEFLATE
filter. The following directive
will enable compression for documents in the container where it
is placed:
SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip
If you want to restrict the compression to particular MIME types
in general, you may use the