写个鬼故事吓自己(1) >>
<< 每一个伟大的网站背后都有一个女人
mod_deflate configuration in httpd.conf

Author Zhou Renjian Create@ 2007-03-08 20:28 Modified@ 2007-03-08 20:29
whizz Note icon
<IfModule mod_deflate.c>
    # Netscape 4.x or IE 5.5/6.0
    BrowserMatch ^Mozilla/4 no-gzip
    # IE 5.5 and IE 6.0 have bugs! Ignore them until IE 7.0+
    BrowserMatch \bMSIE\s7 !no-gzip
    # Sometimes Opera pretends to be IE with "Mozila/4.0"
    BrowserMatch \bOpera !no-gzip
    AddOutputFilterByType DEFLATE text/css text/javascript application/x-javascript
    Header append Vary User-Agent
</IfModule>

More technical details

BTW: The things that made me crazy last night was located. It was because I had an .htaccess file in the folder. And Apache server was told to compress JavaScript always by that file.

本记录所在类别:
本记录相关记录: