NYCPHP Meetup

NYPHP.org

[nycphp-talk] Compress interface pages using gzip compression

Steve Manes smanes at magpie.com
Mon Aug 11 21:58:29 EDT 2008


pyurt wrote:
> Is there a simple way to compress my interface pages using gzip 
> compression.

This is what I use:

AddOutputFilterByType DEFLATE text/html text/plain text/xml 
text/javascript text/css application/xhtml+xml application/xml application/
x-javascript

DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
CustomLog {LOGDIR}/deflate_log deflate

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html




More information about the talk mailing list