users@glassfish.java.net

compression dosn't do the trick

From: <glassfish_at_javadesktop.org>
Date: Sun, 18 Nov 2007 19:59:30 PST

[b]well, i did google on this issue and there were many people asking this but not answered.
i am using glassfish v2 b58g.
in my domain.xml [/b]
        <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-1" port="8080" security-enabled="false" server-name="" xpowered-by="true">
          <property name="proxiedProtocols" value="ws/tcp"/>
          <property name="compression" value="on"/>
          <property name="compressableMimeType" value="text/html,text/xml,text/css,text/plain,text/javascript,application/x-json"/>
        </http-listener>

[b]anyway, it works when the content-type is exactly text/html

here is what firebug showed[/b]
X-Powered-By Servlet/2.5
Server Sun Java System Application Server 9.1
Etag W/"5162-1195442361000"
Last-Modified Mon, 19 Nov 2007 03:19:21 GMT
Content-Type text/html
Content-Encoding gzip
Vary Accept-Encoding
Date Mon, 19 Nov 2007 03:40:51 GMT

[b]but when the content-type was text/html;charset=utf-8, fire bug gave me this:[/b]
X-Powered-By JSP/2.1
Server Sun Java System Application Server 9.1
Content-Type text/html;charset=UTF-8
Content-Length 5162
Date Mon, 19 Nov 2007 03:45:41 GMT

[b]and all .js file, all .css file remains not-compressed[/b]

X-Powered-By Servlet/2.5
Server Sun Java System Application Server 9.1
Etag W/"75103-1194419170000"
Last-Modified Wed, 07 Nov 2007 07:06:10 GMT
Content-Type text/css
Content-Length 75103
Date Mon, 19 Nov 2007 03:46:56 GMT

X-Powered-By Servlet/2.5
Server Sun Java System Application Server 9.1
Etag W/"506393-1194419170000"
Last-Modified Wed, 07 Nov 2007 07:06:10 GMT
Content-Type text/javascript
Content-Length 506393
Date Mon, 19 Nov 2007 03:21:51 GMT

[b]can someone tell me what's going on, am i missing some points or it's just a bug[/b]
[Message sent by forum member 'shawn21' (shawn21)]

http://forums.java.net/jive/thread.jspa?messageID=245998