리눅스

mod_deflate

orgio 2015. 7. 2. 21:51
<IfModule mod_deflate>
  AddOutputFilterByType DEFLATE text/plain text/html text/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml application/xml application/rss+xml
  AddOutputFilterByType DEFLATE text/css application/javascript application/x-javascript
  AddOutputFilterByType DEFLATE audio/midi

  DeflateCompressionLevel 9

  BrowserMatch ^Mozilla/4 gzip-only-text/html   # Netscape 4.xx에는 HTML만 압축해서 보냄
  BrowserMatch ^Mozilla/4\.0[678] no-gzip   # Netscape 4.06~4.08에는 압축해서 보내지 않음
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  # 자신을 Mozilla로 알리는 MSIE에는 그대로 압축해서 보냄
</ifModule>