users@glassfish.java.net

Gzip compression not working on VirtualServer

From: <glassfish_at_javadesktop.org>
Date: Wed, 01 Sep 2010 23:55:24 PDT

Hi all.

I've been testing gzip compression for some mime-types but I faced a problem on my production server. I setted the http-listener as follows:

<property name="compressableMimeType" value="text/css,text/javascript,application/json,application/xml"/>
<property name="compression" value="on"/>

I tried it first on my computer (WinXP) and it runs nice, the server response for css and js is gzipped.
Then I activated it on my production server (Ubuntu Server 9.04) but has no effect.

The only difference is that the application in production server references a web module different from "server" (default web module). Glassfish version is v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs).

Thanks for the help!
[Message sent by forum member 'kienvaser']

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