I'm using a simple ServletFilter that looks for a compressed version
of the request resource ("<URI>.gz" or "<URI>.deflate"), compares
modify time, and then outputs the gzipped resource with the necessary
HTTP headers set (Content-Type, Content-Encoding, etc.). Completely
transparent to the client.
I also wrote a small Ant task that recourse into GWT output directory
and compresses HTML, JS, CSS, and XML files. Doesn't have to be a GWT
feature. Tomcat's GZIP compression and resource caching is also very
practicable and convenient.
As far as I know the Content-Encoding header has to be set for
browsers to decompress and load scripts.
Andrej schrieb: