I tried to enable compression in Tomcat 6.0.10:

   <Connector port="9080" protocol="HTTP/1.1"
       maxThreads="50" connectionTimeout="20000" redirectPort="9443"
       compression="on"
       
compressableMimeType="text/html,text/xml,text/plain,application/xml,application/octet-stream,application/x-netcdf"
 />

Now I am trying to see if that is working. I am using the Live HTTP Headers 
plugin for Firefox, which shows me the HTTP headers. For simplicity, I just 
make a request for a static html page, namely one of the tomcat docs:

http://motherlode.ucar.edu:9080/docs/logging.html

GET /docs/logging.html HTTP/1.1
Host: motherlode.ucar.edu:9080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) 
Gecko/20071127 Firefox/2.0.0.11
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://motherlode.ucar.edu:9080/docs/introduction.html


HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Etag: W/"22376-1182289456000"
Last-Modified: Tue, 19 Jun 2007 21:44:16 GMT
Content-Type: text/html
Content-Length: 22376
Date: Sun, 09 Dec 2007 15:35:25 GMT


I would expect to see a header in the response:

Content-Encoding: gzip

but its missing. I assume this means that the content is not compressed.

I also tried compression="force" to no avail. Also, I wonder what this sentance means: "If the 
content-length is not known and compression is set to "on" or more aggressive, the output will also be 
compressed". What does the output refer to? The "also" implies something else besides the output?

thanks for any help...



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to