Thursday, July 25, 2013

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

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 <quanpluschen@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-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.
 
 

--
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