Monday, July 23, 2012

Re: GWT PrecompressLinker & Tomcat

You need to modify tomcat's server.xml configuration file as follows:

<Connector port="8080" maxHttpHeaderSize="8192"
        maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
        enableLookups="false" redirectPort="8443" acceptCount="100"
        connectionTimeout="20000" disableUploadTimeout="true"
        compression="on"
  compressionMinSize="2048"
  noCompressionUserAgents="gozilla, traviata"
  compressableMimeType="text/html,text/xml, text/css,text/javascript"/>

notice "compression" attributes. set as per your requirements. You need to restart tomcat to get these in effect.

On Friday, 24 June 2011 12:56:50 UTC+5:30, pop.ionut84 wrote:
Hi,
I've included the PrecompressLinker option in my gwt.xml file, build
the application and deploy to Tomcat. All generated js file have an
equivalent js.gz file, but Tomcat still uses non gzip files.

How can I tell Tomcat when a request comes for foo.js to check for the
existence of foo.js.gz and use it?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/p7hYtsVGFFMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment