Oracle iPlanet Web Proxy Server 4.0.14 Administration Guide

Configuring the Server to Compress Content on Demand

You can configure the Proxy Server to compresses transmission data on the fly. A dynamically generated HTML page does not exist until a user asks for it.

ProcedureTo Configure Your Server to Compress Content on Demand

  1. Access the Server Manager, and click the Filters tab.

  2. Click the Compress Content on Demand link.

    The Compress Content on Demand page is displayed.

  3. Select the resource from the drop-down list or type a regular expression.

    For more information on regular expressions, see “Understanding Regular Expressions” in Chapter 16, Managing Templates and Resources.

  4. Specify the following information:

    • Activate Compress Content on Demand? Choose whether the server should serve precompressed content for the selected resource.

    • Vary Header. Specify whether to insert a Vary: Accept-encoding header. Select either yes or no. If set to yes, then a Vary: Accept-encoding header is always inserted when a compressed version of a file is selected.

      If set to no, then a Vary: Accept-encoding header is never inserted.

      By default, the value is set to yes.

    • Fragment Size. Specifies the memory fragment size in bytes to be used by the compression library (zlib) to control how much to compress at a time. The default value is 8096.

    • Compression Level. Specifies the level of compression. Choose a value between 1 and 9. The value 1 yields the best speed; the value 9 the best compression. The default value is 6, a compromise between speed and compression.

  5. Click OK.

  6. Click Restart Required.

    The Apply Changes page is displayed.

  7. Click the Restart Proxy Server button to apply the changes.