Sun Java System Web Server 6.1 SP9 Administrator's Guide

ProcedureTo configure your server to serve precompressed content

  1. From the Class Manager, click the Content Management tab.

  2. Click Serve Precompressed Content.

  3. Enter the following information:

    • Editing. Select the resource from where precompressed content will be served from the drop-down list. If you choose a directory, the server will serve precompressed content only when the server receives a URL for that directory or any file in that directory.

      Click the Browse button to browse the primary document directory, or click the Wildcard button to specify a wildcard pattern. For information on using wildcard patterns, see Wildcards Used in the Resource Picker.

      • Activate Serving Precompressed Content? Allows you to instruct the server to serve precompressed content for the selected resource.

      • Check Age. Specify whether to check if the compressed version is older than the non-compressed version. Possible values are yes and no.

        If set to yes, then the compressed version, if it is older than the non-compressed version, will not be selected.

        If set to no, then the compressed version, even if it is older than the non-compressed version, will always be selected.

        By default, the value is set to yes.

      • Vary Header. Specifies whether to use 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.

  4. Click OK.