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” -/- (-%)