RIFE can automatically compress the output of certain mime types. This makes pages being served much quicker and less bandwidth being used. You turn on the compression by doing this in the configuration file of your application:
<param name="GZIP_COMPRESSION">true</param>
By default the following content types will then be compressed: text/html, text/xml, text/plain, text/css, text/javascript, application/xml and application/xhtml+xml. If you want to override these, you can by setting up the appropriate configuration list like this:
<list name="GZIP_COMPRESSION_TYPES">
<item>text/html</item>
<item>text/xml</item>
<item>text/plain</item>
</list>
Note that this compression will only influence content that's being served through RIFE. If you serve static files straight through your servlet engine, you'll have to configure gzip compression in your servlet engine for those files.
Version
Since RIFE 0.7.2