> ### Apache HTTP Server Version 2.0

> # Apache Module mod_deflate

> Description: | <description>Compress content before it is delivered to the client</description>
> Status: | experimental
> Module Identifier: | deflate_module

> ## Summary

> The experimental `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.

> See also

> - `AddOutputFilter`
> - `SetOutputFilter`

> ## Directives

> - DeflateFilterNote
> - DeflateMemLevel
> - DeflateWindowSize

> ## Enabling Compression

> Compression is implemented by the `DEFLATE` filter. The following directive will enable compression for documents in the container where it is placed:

> Most popular browsers can not handle compression of all content so you may want to enable the 'gzip-only-text/html' note (see below)

> > `SetEnv gzip-only-text/html 1 SetOutputFilter DEFLATE`

> Here is an example of enabling compression for the Apache documentation:

> > `<Directory "/your-server-root/manual"> SetEnv gzip-only-text/html 1 SetOutputFilter DEFLATE </Directory>`

> ## DeflateFilterNote Directive

> Description: | Places the compression ratio in a note for logging
> Syntax: | <syntax>DeflateFilterNote notename</syntax>
> Context: | server config
> Status: | experimental
> Module: | mod_deflate

> <usage>

> The `DeflateFilterNote` directive specifies that a note about compression ratios should be attached to the request. The name of the note is the value specified for the directive.

> </usage>

> ## DeflateMemLevel Directive

> Description: | Amount of memory available to zlib for compression
> Syntax: | <syntax>DeflateMemLevel value</syntax>
> Context: | server config
> Status: | experimental
> Module: | mod_deflate

> <usage>

> The `DeflateMemLevel` directive specifies the amount of memory available to zlib for compression.

> </usage>

> ## DeflateWindowSize Directive

> Description: | Zlib compression window size
> Syntax: | <syntax>DeflateWindowSize value</syntax>
> Context: | server config
> Status: | experimental
> Module: | mod_deflate

> <usage>

> The `DeflateWindowSize` directive specifies the zlib compression window size.

> </usage>

> ### Apache HTTP Server Version 2.0