Hi, I am using Apache 2.2.8. I tried to add logging for deflate [gzip] ratios in a dev machine by looking at http://httpd.apache.org/docs/2.0/mod/mod_deflate.html and some other articles on internet.
Heres the configuration used: <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml </IfModule> DeflateFilterNote Input instr DeflateFilterNote Output outstr DeflateFilterNote ratio LogFormat "%h\t%l\t%u\t%t\t\"%r\"\t%>s\t%b\t%D\t\"%{User-Agent}i\"\t%I\t%O\t%{outstr}n/%{instr}n\t(%{ratio}n)" common Logging is working fine but the ratio is not appearing for html files [It gets printed for css/js files] 192.168.0.57 - - [28/Jul/2009:17:56:57 +0530] "GET /credit-card/apply-online.html HTTP/1.1" 200 14722 418995 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5" 1257 15257 -/- (-) 192.168.0.57 - - [28/Jul/2009:17:56:58 +0530] "GET /scripts/validate/ccefrm.js HTTP/1.1" 200 2325 11741 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5" 1225 2974 2307/9821 (23) I verified using lwp-request, curl and online tools that our configs are compressing pages while serving. anan...@anantha-laptop:~$ lwp-request -e -d -H 'Accept-Encoding: gzip' http://local.bankbazaar.com/ |grep -i -e Content-Encoding -e Content-Length Content-Encoding: gzip Content-Length: 8793 Please help me understand why ratio is not appearing for html files. Thanks Anantha