This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a web application deployed in Tomcat 4.0. I have added a filter to compress the content served. My question is - is there any way I can measure the size of the server response (content served per URL) so that I can quantify the compression. For example, I disable the compression and the size of the response for a URL is, say, X kilobytes. I enable the compression and I get the size of the same URL is, say, Y kilo bytes. Now by comparing X and Y, I know how much is the compression. I prefer do it on server side since I have tried some browser plug-ins in IE (my application runs on IE only) and they aren't helpful for this purpose.