Welcome to ZipFilter page (pre-release)




You can now use this zip filter to compress outputs for either the entire website or just some specific urls you map this filter to.
Feb 27, 2003: skip jpg, and java script (js) files
Mar 04, 2003: Add encoding support for east-asian languages.
The zip filter requires BajieServer 0.95zwa and later.
To use: download zipfilter.zip and uncompress it. put all class files in servlets/ directory (or you can put them in a new folder and add that folder to your server's classpath with configServlet, under WebApp config, set server classpath).

Bring up the server, use config servlet (usually http://localhost/srvConfig) and click on 'Edit Filters', and then 'List Filters' button, then check the box besides ZipFilter and click submit button. Make sure the name of the filter is Green now.
Next click on 'Url Map Filters' button, choose the URL mapping you want (for entire website, set to /), and select the filter on the right to ZipFilter and click on submit button. Now the list below should have / mapped to ZipFilter. You can choose to only compress output from a certain url, such as /myWrittings.

Now you are all set. The filter will check if the browser supports compression, and use compression if Content-encoding: gzip tag is found.


There is one downside. There is a report that some version of IE has bugs which prevent compressed content to be displaied correctly. If you found some of those please report back to me with the browser name (the beta version of zip filter will print it out on screen), thank you! Please report bugs to gzhangx@hotmail.com