> From: Michael [mailto:sg...@gmx.net]
> Subject: Re: HTTP Connector GZIP compression
> 
> 1. lorem.jsp: 72 726  bytes
> 2. prototype.js: 134.057  bytes
> 
> According to the above setting only the JS file should be compressed.

No; response from the .jsp will also be compressed if the return type is html - 
which it almost always is for JSPs.

> HTTP/1.1 200 OK
> Content-Type: text/html;charset=UTF-8
> Transfer-Encoding: chunked
> Content-Encoding: gzip

> Regarding number 1: this is compressed although I set 
> threshold to 80000 bytes

Note the Transfer-Encoding of chunked along with this sentence from the doc:

"If the content-length is not known and compression is set to 'on' or more 
aggressive, the output will also be compressed."

> HTTP/1.1 200 OK
> Content-Type: text/javascript
> Content-Length: 134057
> 
> Regarding number 2: the Javascript ist not compressed!

That does seem to be a problem; check your server.xml again now that you've 
removed the undefined attribute.

> No I turn compression off:
> 
> #  Result  Protocol  Host            URL                   Body
> 0   200        HTTP      localhost:8080  /java-demo/lorem.jsp  19665
> 
> Caching  Content-Type             Process
>          text/html;charset=UTF-8  firefox:500
> 
> lorem.jsp still compressed: WTF

Why do you think the output of lorem.jsp is compressed this time?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

Reply via email to