<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="en-us" /> <meta name="ROBOTS" content="ALL" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="Keywords" content="cherokee web server httpd http" /> <meta name="Description" content="Cherokee is a flexible, very fast, lightweight Web server. It is implemented entirely in C, and has no dependencies beyond a standard C library. It is embeddable and extensible with plug-ins. It supports on-the-fly configuration by reading files or strings, TLS/SSL (via GNUTLS or OpenSSL), virtual hosts, authentication, cache friendly features, PHP, custom error management, and much more." /> <link href="media/css/cherokee_doc.css" rel="stylesheet" type="text/css" media="all" /> </head> <body> <h2 id="_a_href_index_html_index_a_8594_a_href_modules_html_modules_a_8594_a_href_modules_encoders_html_encoders_a"><a href="index.html">Index</a> → <a href="modules.html">Modules</a> → <a href="modules_encoders.html">Encoders</a></h2> <div class="sectionbody"> </div> <h2 id="_encoder_deflate">Encoder: deflate</h2> <div class="sectionbody"> <div class="paragraph"><p>This compression encoder is similar to the <a href="modules_encoders_gzip.html">gzip</a> encoder. The <tt>gzip</tt> compression is technically superior to <tt>deflate</tt>, thus this one is not set up as a default for new virtual servers.</p></div> <div class="paragraph"><p>A <strong>Compression Level</strong> can be optionally set within the range 0 to 9, where 0 is no compression, 1 best speed, and 9 is best compression.</p></div> <div class="paragraph"><p>Just as with <tt>gzip</tt>, the encoding support is based on modules. The configuration file must tell the server to load a module or it won’t be supported.</p></div> <div class="paragraph"><p>Also, as with <tt>gzip</tt>, it is possible to specify which files can be encoded and which ones are to be excluded.</p></div> <div class="paragraph"><p>The only reason to offer <tt>deflate</tt> encoding is for the rare cases in which it is supported by clients that do not support <tt>gzip</tt>. No modern web browser will lack this. However more than one encoder can be offered simultaneously by Cherokee, so you have the choice to add or not the support for <tt>deflate</tt>.</p></div> </div> <div id="footer"> <div id="footer-text"> </div> </div> </body> </html>