Closed einkoro closed 12 years ago
Looks like this shouldn't even be necessary - lighttpd has mod_deflate which can replace mod_compress to support dynamic compression for fastcgi. Interestingly it performs better than PHP's zlib compression.
http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModDeflate
Sadly mod_deflate is for Lighttpd 1.5.0 only and who knows when that will be final (and available via ports on FreeBSD).
Compiled trunk for 1.5 and mod_deflate is working perfectly. As long as you use cmake on FreeBSD it compiles issue free.
We just need to check the Accept-Encoding request header and use the following module:
http://perldoc.perl.org/IO/Compress/Gzip.html