Apache2 mod_deflate does not work

hi,
when i use mongrel_cluster in my web application(which is hosted by
apache2), i setup apache2 mod_deflate to save traffic,however,i found
deflate did not work with js and css module,i know deflate could be used
to compress javascript,but i dont know why it could not work with js and
css?can some one give me an idea?
thanks!

following is my apache2 config part of the mod_deflate :

#Deflate
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/xml 

application/xml application/xhtml+xml text/javascript text/css
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only

DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' 

deflate

and here is the deflate logs:

“GET /stylesheets/app.css?1161256256 HTTP/1.0” -/- (-%)
“GET /stylesheets/util.css?1160272162 HTTP/1.0” -/- (-%)
“GET /javascripts/prototype.js?1156841434 HTTP/1.0” -/- (-%)
“GET /javascripts/effects.js?1156841388 HTTP/1.0” -/- (-%)
“GET /javascripts/dragdrop.js?1156841306 HTTP/1.0” -/- (-%)
“GET /javascripts/application.js?1158550499 HTTP/1.0” -/- (-%)

The above log is got under IE6 and now i get them from FF1.5,i can see
that javascripts and stylesheets are compressed well(about 1/4 of the
original size).
That is to say,IE6 does not support the receiving of compressed js?

ethan wrote:

That is to say,IE6 does not support the receiving of compressed js?

BrowserMatch bMSIE !no-gzip !gzip-only

This probably wants to be \bMSIE or just MSIE. If it’s not matching,
the previous Netscape-4 blocking lines (which can’t handle gzipped
JS/CSS) will apply to IE (which can) too.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs