Friday, July 26, 2013

Re: How to serve pre-compressed static content through Tomcat?

Thanks it helps, at least I am assured that only browsers that are more than 10 years old would run into problems with this config which is negligible.

On Thursday, July 25, 2013 6:44:29 PM UTC-7, Juan Pablo Gardella wrote:


2013/7/25 QC <quanpl...@gmail.com>
Yet another questions about the Tomcat noCompressionUserAgents parameter, what should I set it to? If search online I can only find the boilerplate noCompressionUserAgents="gozilla, traviata" which doesn't much sense, I even couldn't find the corresponding browsers.



On Thursday, July 25, 2013 4:33:52 PM UTC-7, QC wrote:
Interesting, I didn't know I can translate the requests!

On Thursday, July 25, 2013 4:18:55 PM UTC-7, Juan Pablo Gardella wrote:
Hello,

If you zip all the files with '.zip' extension, you can add a filter that translates 'a.html' to 'a.zip'. What do you think?

Juan


2013/7/25 QC <quanpl...@gmail.com>
Hi,

recently I've been looking into how to improve the performance of my website through compression. And I've browsed through almost all related topics in the group but still have questions unresolved.

Enabling the tomcat built-in compression is easy, but I really like to serve pre-compressed content since it saves the CPU for compressing on the fly.

My application is hosted by Tomcat only so all the Apache modules don't work for me.

Some suggested a filter solution to set the proper headers in the response. That makes sense, however, I'm more interested in how to change a request for a uncompressed file(say cache.html) to its compressed version.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment