Meine Konfiguration von deflate in der httpd.conf sieht so aus:
- Code: Select all
AddOutputFilterByType DEFLATE text/html text/plain text/xml
<Location />
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</Location>
#Accurate Logging
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
#
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog logs/deflate.log deflate
Jetzt meine Fragen zur Konfiguration:
Wenn ich kein Netscape oder Mozilla verwende sind doch die Browserpatch-Einträge überflüssig oder?
Bestimmt kann man bei dem LogFormat einstellen, dass noch Datum dazu angezeigt wird!? Wenn ja, mit welchem Eintrag?
Warum sollen images normalerweise nicht komprimiert werden. Gibt es da Probleme? Bei jeder Konfiguration, die ich gesehen habe, war dieser Eintrag (SetEnvIfNoCase...) mit dabei.
Greetz