library

technical documents

Compressing your website output

Posted by: Administrator on July 29, 2007 01:29:29 PM +00:00
Smaller is better.

This is more in the line of short pieces about adapting from Apache to Lighttpd style configurations. Mod_deflate is not available of course but with our lighttpd.conf and php.ini, we can compress both our static and dynamic content.

php.ini

zlib.compression = On
zlib.output_handler = On

lighttpd.conf

server.modules += ("mod_compress")
compress.cache-dir = "~/var/cache/www.foo.com/"
compress.filetype = ("text/plain","text/html","text/javascript","text/xml","text/css")
Updated: 05 Apr 10 07:33