The Cache Policy dialog box enables you to create cacheability constraints for URL patterns or servlet names. You can open this dialog box from the Cache property editor by selecting a Cache Reference Value column of the entry with the CachePolicyRef value as the Cache Reference in the Cache Mapping table.
You must define the following fields:
This field specifies the timeout input parameter, whose value is interpreted in seconds. The field’s type must be java.lang.Long or java.lang.Integer.
This field specifies the scope in which the input parameter can be present.
This field specifies the constraint specific maximum amount of time in seconds that an entry can remain in the cache after it is created or refreshed.
This field specifies HTTP methods that are eligible for caching.
This field specifies a component of the key used to look up and extract cache entries. The web container looks for the named parameter, or field, in the specified scope.
The following table describes the columns for the Key Field parameters.
Column Name | Value |
---|---|
Name | The input parameter name. |
Scope | The scope in which the input parameter can be present. |
This field specifies a cacheability constraint for the given UrlPattern or ServletName value. All the constraints must pass for a response to be cached.
The following table describes the columns for the Constraint Field constraint parameters.
Column Name | Value |
---|---|
Name | The input parameter name. |
Scope | The scope in which the input parameter can be present. |
Cache on Match | If true, caches the response if matching succeeds. Overrides the same attribute in the Value column. |
Cache on Match Failure | If true, caches the response if matching fails. Overrides the same attribute in a Value column. |
Value |
The value constraints to be matched to the input parameter value. For the Constraint Field constraint to be satisfied, at least one of them must pass. The matching is case sensitive. When you click the Value column, the Constraint Field Value dialog box opens. The following describes each column in the Constraint Field Value dialog box:
|
See also | |
Web Module Property Sheet: Sun ONE AS Tab Cache Property Editor |