Project

General

Profile

Actions

Mod deflate » History » Revision 22

« Previous | Revision 22/44 (diff) | Next »
gstrauss, 2016-10-17 00:05


mod_deflate

mod_deflate is available in lighttpd 1.4.42 and later. mod_deflate differs from mod_compress in that mod_deflate can compress any output from lighttpd static or dynamic. mod_deflate does not support caching compressed output like mod_compress.

Module options:

deflate.mimetypes = ("text/html", "text/plain", "text/css", "text/javascript", "text/xml")
#deflate.mimetypes = ("text/")       # prefix matches all text/* Content-Type responses
deflate.allowed_encodings = ( "bzip2", "gzip", "deflate" )
deflate.max-compress-size = 131072   # measured in kilobytes, so 131072 indicates 128 MB
deflate.min-compress-size = 256      # measured in bytes
deflate.compression-level = 9
#deflate.output-buffer-size = 8192
deflate.work-block-size = 2048

max-compress-size is the largest response size that will be compressed.
min-compress-size is the smallest response size that will be compressed.

output-buffer-size is a per connection buffer for compressed output, it can
help decrease the response size (fewer chunks to encode). If it is set to
zero, a shared buffer will be used.

work-block-size is the number of kilobytes to compress at one time, it allows
the webserver to do other work (network I/O) in between compression.

Known Limitation

mod_deflate currently does not stream compressed content in chunks. This affects very large dynamic responses, or dynamic responses sent in chunks with large time lapses between chunks.

Updated by gstrauss about 8 years ago · 44 revisions