Saturday, November 24, 2012

Re: gwt 2.5/PrecompressLinker useless with tomcat/jboss?

I never encountered this issue. I had a separate filter sitting in front of all the GWT files adding all the appropriate cache headers for any file that didn't have nocache in the name.   Are you sure you're sending the correct response headers to indicate to the browser it can be cached?  

On Thursday, November 22, 2012 9:29:16 AM UTC-6, pop_ionut84 wrote:
Hi
I've used the same scenario for serving .gz precompressed with a servlet filter.
My only problem is that my .gz files doesn't get cached by the browser. Did you found a solution for this?

Regards


On Monday, October 29, 2012 5:06:06 PM UTC+2, jhulford wrote:
To handle this in Tomcat, I wrote a little servlet filter that basically uses a request wrapper to re-write the request, pointing it to the precompressed .gz version of the files if the request has a gzip Accept-Encoding header before forwarding it through the filter chain.  Then changed the response's encoding to be gzip and the mime-type to be the original request's mime-type.

Sorry, can't share the code, but it seems to be working fine for us.

On Friday, October 26, 2012 6:23:15 PM UTC-4, dhartford wrote:
Hi all,
I've been trying to utilize http://code.google.com/p/google-web-toolkit/wiki/PrecompressLinker, but for (I'm assuming) the common usecase of deploying to Tomcat, or to Jboss, this seems useless/no value.

With tomcat, only configuration I could find was to modify server.xml with Connector ...compression="on" .. configurations which RE-compresses (instead of using pre-compressed) outgoing content, seemingly on the fly for every request. Jboss seems to have similar challenges.

Has anyone had success where using the GWT PrecompressLinker provided value to Tomcat environments (opposed to jetty)?  I know this isn't a direct GWT question, but having a cool feature and being unable to use it leads one wanting... :-)

-Darren

--
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/-/2nc8lDYS6VgJ.
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