cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14144] - [Patch] add CompressionFilter declaration to web.xml
Date Sat, 02 Nov 2002 20:27:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14144>.
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


Mime
View raw message