使用 apache 的 mod_deflate 可以減少傳輸量,但實際用發現要處理很多 IE6 的 bug,似乎蠻複雜的...
列出幾個已經知道的問題:
- Content with "Content-Encoding: gzip" Is Always Cached Although You Use "Cache-Control: no-cache" (在 IE6 SP1 以及之前的版本)
- HTML pages only partially appear, HTML pages do not appear at all, or the network stops responding (在 IE6 SP1 以及之前的版本)
還要繼續整理這些 bug 資訊,確保使用者端能夠正確的解開。目前看起來,如果看到 IE6 就不使用壓縮功能是比較簡單的解決方法...
請教一下要怎麼設定看到IE6 就不使用壓縮功能呢?
我直接在 .htaccess 裡使用 SetEnv no-gzip 似乎沒有作用
<Ifmodule deflate_module>
BrowserMatch \bMSIE\s[1-6] no-gzip
Header append Vary User-Agent
SetOutputFilter DEFLATE
</Ifmodule>