bitpiston / oyster

A Perl web application framework.
Other
3 stars 1 forks source link

Implement GZip compression #43

Closed einkoro closed 12 years ago

einkoro commented 12 years ago

We just need to check the Accept-Encoding request header and use the following module:

http://perldoc.perl.org/IO/Compress/Gzip.html

einkoro commented 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

einkoro commented 12 years ago

Sadly mod_deflate is for Lighttpd 1.5.0 only and who knows when that will be final (and available via ports on FreeBSD).

einkoro commented 12 years ago

Compiled trunk for 1.5 and mod_deflate is working perfectly. As long as you use cmake on FreeBSD it compiles issue free.