Hi folks,

my email might have gotten lost in the madness breaking out on dev@,
so I'm sending my patch to this forum.

It's a proposal, for trunk. I'd like to get some feedback, before
committing it, since it's a rather drastic step away from our old
configuration and recommendation (which ended up being copy/pasted
in many a distribution's configuration files).

(No feedback means yes, that's brilliant Igor, please commit it now)
-- 
Igor Galić

Tel: +43 (0) 699 122 96 338
Fax: +43(0) 1 91 333 41
Mail: [email protected]
URL: http://brainsware.org/
Index: mod/mod_deflate.xml
===================================================================
--- mod/mod_deflate.xml	(revision 949964)
+++ mod/mod_deflate.xml	(working copy)
@@ -44,32 +44,19 @@
       AddOutputFilterByType DEFLATE text/html text/plain text/xml
     </example>
 
-    <p>The following configuration, while resulting in more compressed content,
+    <p>The following configuration, while being the recommended setup using mod_filter,
+    results in more compressed content than the above but
     is also much more complicated.  Do not use this unless you fully understand
     all the configuration details.</p>
 
     <example><title>Compress everything except images</title>
       &lt;Location /&gt;<br />
       <indent>
-        # Insert filter<br />
-        SetOutputFilter DEFLATE<br />
-        <br />
-        # Netscape 4.x has some problems...<br />
-        BrowserMatch ^Mozilla/4         gzip-only-text/html<br />
-        <br />
-        # Netscape 4.06-4.08 have some more problems<br />
-        BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
-        <br />
-        # MSIE masquerades as Netscape, but it is fine<br />
-        BrowserMatch \bMSIE             !no-gzip !gzip-only-text/html<br />
-        # Don't compress images<br />
-        SetEnvIfNoCase Request_URI \<br />
-        <indent>
-          \.(?:gif|jpe?g|png)$ no-gzip dont-vary<br />
-        </indent>
-        <br />
-        # Make sure proxies don't deliver the wrong content<br />
-        Header append Vary User-Agent env=!dont-vary<br />
+         # Declare filter, add mod_deflate for all text/* MIME Types<br />
+         FilterDeclare COMPRESS<br />
+         FilterProvider COMPRESS DEFLATE resp=Content-Type $text/<br />
+         FilterChain COMPRESS<br />
+         FilterProtocol COMPRESS change=yes;byteranges=no 
       </indent>
       &lt;/Location&gt;
     </example>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to