Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Enabling gzip with Tomcat and SmartGWT

$
0
0
Hi all,

'm using SmartClient Version: v8.2p_2012-09-01/LGPL Development Only (built 2012-09-01) and I'm trying to enable gzip compression. If I'm doing it locally through Apache, everything works great. The problem is that on the server, I only have Tomcat installed. When I add the gzip directive to the server.xml and an appropriate Connector, only text gets gzipped, but not JavaScript. This is what I'm using:

Code:

<Connector port="8080" protocol="HTTP/1.1"
          connectionTimeout="20000"
          redirectPort="8443"
          compression="on" compressionMinSize="2048"
          compressableMimeType="text/html,text/xml,text/javascript,text/css,application/javascript"  />

Edit: I noticed that the *.nocache.js and ISC_RichTextEditor.js get gzipped but e.g. ISC_Calendar.js doesnt.

Viewing all articles
Browse latest Browse all 4756

Trending Articles