Hi,
I'm developing an JSF web app on Tomcat, planning to use Seam in the near future, and I want to add compression of our web pages and resources (i.e. Javascript & CSS files). I'm aware of three methods to GZIP responses in a Java web :
Use Ehcache GZIP filter: it's used in Appfuse, so it's probably solid and it checks if the user agent supports GZIP before applying it, but it seems to have problems with Seam, which we will be using (http://seamframework.org/Community/EHCacheGZipFilterIncompatibleWithSeam)
Use pjl-filter. From the stackoverflow question: "tomcat-compression-does-not-add-a-content-encoding-gzip-in-the-header" (sorry, newbies can't add more than 1 hyperlink per question ), it appears it doesn't have any memory leaks, but I don't know if it has problems with Seam or not.
Use Tomcat's built in compression - although it may not provide a content encoding (Tomcat 6.0.14 seems to work fine, but you can only provide a black list for what user agents compression should not be applied to.
Does anyone have experience with these methods in a JSF-Seam environment? Which is the "best" solution?
Thanks, Glen