Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 89116 invoked by uid 500); 2 Nov 2002 20:26:40 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 89099 invoked from network); 2 Nov 2002 20:26:39 -0000 Date: 2 Nov 2002 20:27:38 -0000 Message-ID: <20021102202738.29460.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: cocoon-dev@xml.apache.org Cc: Subject: DO NOT REPLY [Bug 14144] - [Patch] add CompressionFilter declaration to web.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14144 [Patch] add CompressionFilter declaration to web.xml ------- Additional Comments From ivelin@apache.org 2002-11-02 20:27 ------- Realized this was a Tomcat exsample filter. http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p3.html I think that the Compression servlet is a valuable contribution. It can be enabled as a global filter for the Cocoon Servlet. In addition to URL namespaces, compression is best controlled in combination with MIME types. According to Apache mod_deflate, browsers are not always good at handling compression for non html content. Therefore the servlet should be improved to accept a compress-mime-types.txt file with a list of mime types which can be compressed. For example: # MIME types that can be compressed text/css text/directory text/enriched text/html text/parityfec text/plain ... Other compression filters are publicly available as well: http://www.caucho.com/resin/javadoc/com/caucho/http/filter/GzipFilter.html http://www.servletsuite.com/servlets/gzipflt.htm http://coldjava.hypermart.net/servlets/compress.htm http://octopus.cdut.edu.cn/~yf17/javaent/servlet/ch06_02.htm --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org