mod_deflate的默认configuration是否可以在生产环境中使用?

mod_deflate的官方文档可以工作,并且在我的serveR中给了我很好的结果。 有人build议在生产机器上使用吗?

http://httpd.apache.org/docs/2.2/mod/mod_deflate.html#recommended

<Location /> # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI \ \.(?:gif|jpe?g|png)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary </Location> 

您必须权衡的是时间与规模。 如果您花费时间更改压缩级别,则可能需要几毫秒的时间来提供页面,从而使压缩页面变得更小。

默认值相当平衡,正确处理99%的浏览器,并经过深思熟虑。