Default configs for Ubuntu, at least, enable mod_deflate too broadly, and
XMLENT filtering needs to happen before mod_deflate kicks in.
Because we can't change the filter order, instead disable mod_deflate for
those files we have enabled XMLENT filtering, by use of the no-gzip ENV.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
XMLEntContentType "text/html; charset=utf-8"
AddOutputFilter INCLUDES;XMLENT .xhtml
AddOutputFilter INCLUDES;XMLENT .html
+ SetEnv no-gzip
allow from all
</LocationMatch>
Options +Includes
XMLEntContentType "application/vnd.mozilla.xul+xml"
AddOutputFilter INCLUDES;XMLENT .xul
+ SetEnv no-gzip
allow from all
</LocationMatch>
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog /var/log/apache2/deflate_log deflate
+
+ # There are problems with XMLENT and mod_deflate - so lets disable it
+ # This is where we don't have a pre-existing LocationMatch directive earlier
+ <LocationMatch /opac/.*\.xml$>
+ SetEnv no-gzip
+ </LocationMatch>
+ <LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/.*\.html$>
+ SetEnv no-gzip
+ </LocationMatch>
+ <LocationMatch /reports/.*\.xhtml$>
+ SetEnv no-gzip
+ </LocationMatch>
+ <LocationMatch /conify/.*\.html$>
+ SetEnv no-gzip
+ </LocationMatch>
</IfModule>