Apache 2.x 上的 mod_deflate

因為 mod_gzip 問題很多,尤其是在 php 也採用壓縮輸出時會常造成網頁空白,
在 apache 2.x 以上的支援也不完整,所以改用 apache 內建的 module

 

LoadModule deflate_module modules/mod_deflate.so
<ifmodule mod_deflate.c>
DeflateCompressionLevel 9
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js
</ifmodule>

About the Author

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料