Sun Java System Web Server 6.1 SP11 Administrator's Configuration File Reference

find-compressed

Applicable in PathCheck-class directives.

The find-compressed function checks if a compressed version of the requested file is available. If the following conditions are met, find-compressed changes the path to point to the compressed file:

Parameters

The following table describes parameters for the find-compressed function.

Table 4–19 find-compressed Parameters

Parameter  

Description  

check-age

Specifies whether to check if the compressed version is older than the noncompressed version. Possible values are yes and no.

  • If set to yes, the compressed version will not be selected if it is older than the noncompressed version.

  • If set to no, the compressed version will always be selected, even if it is older than the noncompressed version.

    By default, the value is set to yes.

vary

Specifies whether to insert a Vary: Accept-Encoding header. Possible values are yes or no.

  • If set to yes, a Vary: Accept-Encoding header is always inserted when a compressed version of a file is selected.

  • If set to no, a Vary: Accept-Encoding header is never inserted.

    By default, the value is set to yes.

bucket

(Optional) Common to all obj.conf functions.

Example

<Object name="default">
NameTrans fn="assign-name" from="*.html" name="find-compressed"
...
</Object>
<Object name="find-compressed">
PathCheck fn="find-compressed"
</Object>

See Also

http-compression