3) add <inherits name="com.google.gwt.precompress.Precompress"/> to your 
gwt.xml and the GWT compilation will automatically GZip all emitted *.html, 
*.js and *.css (by default) as additional (by default) *.gz files; so you 
only have to have MultiViews enabled in Apache (or a similar setup that 
serves the *.gz file if it exists and the client accepts gzip encoded 
responses). Note that the DefaultServlet in Jetty (6 and 7) already does 
this, and it's turned on by default: 
http://jetty.codehaus.org/jetty/jetty-6/apidocs/org/mortbay/jetty/servlet/DefaultServlet.html
 & 
http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/servlet/DefaultServlet.html
It's similar to your option 2) but without the "extra work after gwt 
compilation" (and possibly without the extra configuration, depending on 
your server).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to