From: Erik Abele See also Compression is implemented by the Most popular browsers can not handle compression of all content
+ Most popular browsers can not handle compression of all content
so you may want to set the 'gzip-only-text/html' note to 1 to only
- allow html files to be compressed (see below) if you set this to anything but '1' it will be ignored, so you can do
- negative matchesDirectives
Enabling Compression
DEFLATE
- filter. The following directive
+ filter. The following directive
will enable compression for documents in the container where it
is placed:
If you set this to anything but '1' it will be ignored, so you can do + negative matches.
SetEnv gzip-only-text/html 1
SetOutputFilter DEFLATE @@ -42,7 +40,7 @@ SetOutputFilter DEFLATEFragment size to be compressed at one time by zlib Syntax: DeflateBufferSize value Default: DeflateBufferSize 8096
Context: - server config Status: + server config, virtual host Status: Extension Module: mod_deflate The
DeflateBufferSize
directive specifies @@ -51,18 +49,18 @@ SetOutputFilter DEFLATEDeflateFilterNote Directive
Description: Places the compression ratio in a note for logging Syntax: DeflateFilterNote notename Context: - server config Status: + server config, virtual host Status: Extension Module: mod_deflate 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 + to the request. The name of the note is the value specified for the directive.DeflateMemLevel Directive
Description: How much memory should be used by zlib for compression Syntax: DeflateMemLevel value Default: DeflateMemLevel 9
Context: - server config Status: + server config, virtual host Status: Extension Module: mod_deflate The
DeflateMemLevel
directive specifies @@ -72,7 +70,7 @@ SetOutputFilter DEFLATEZlib compression window size Syntax: DeflateWindowSize value Default: DeflateWindowSize 15
Context: - server config Status: + server config, virtual host Status: Extension Module: mod_deflate The
+DeflateWindowSize
directive specifies the diff --git a/docs/manual/mod/mod_deflate.xml b/docs/manual/mod/mod_deflate.xml index 214ccad4be..7d49fc291a 100644 --- a/docs/manual/mod/mod_deflate.xml +++ b/docs/manual/mod/mod_deflate.xml @@ -22,16 +22,14 @@Enabling Compression Compression is implemented by the
- -DEFLATE
- filter. The following directive + 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 +
Most popular browsers can not handle compression of all content so you may want to set the 'gzip-only-text/html' note to 1 to only - allow html files to be compressed (see below)
-if you set this to anything but '1' it will be ignored, so you can do - negative matches
- + allow html files to be compressed (see below).If you set this to anything but '1' it will be ignored, so you can do + negative matches.
SetEnv gzip-only-text/html 1
SetOutputFilter DEFLATE @@ -52,12 +50,13 @@ SetOutputFilter DEFLATEDeflateFilterNote Places the compression ratio in a note for logging DeflateFilterNote notename -+ server config server config virtual host +@@ -67,7 +66,8 @@ SetOutputFilter DEFLATE 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 + to the request. The name of the note is the value specified for the directive.Fragment size to be compressed at one time by zlib DeflateBufferSize value DeflateBufferSize 8096 -+ server config server config virtual host +The
DeflateBufferSize directive specifies @@ -81,7 +81,8 @@ SetOutputFilter DEFLATEZlib compression window size DeflateWindowSize value DeflateWindowSize 15 -+ server config server config virtual host +The
DeflateWindowSize directive specifies the @@ -94,7 +95,8 @@ SetOutputFilter DEFLATEHow much memory should be used by zlib for compression DeflateMemLevel value DeflateMemLevel 9 -+ server config server config virtual host +The
DeflateMemLevel directive specifies