Dashboard > RIFE > ... > Web engine > Gzip compression
RIFE Log In | Sign Up   View a printable version of the current page.
Gzip compression


Added by Steven Grimm, last edited by Joshua Hansen on Jul 18, 2006  (view change)
Labels: 
(None)

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



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators