Cache Mapping Policy

In the Cache Mapping Policy dialog you can create cacheability constraints for URL patterns or Servlet names.
  1. In the Timeout Name field, specify the timeout input parameter, whose value is interpreted in seconds.
  2. In the Timeout Scope field, select the scope in which the input parameter can be present.
  3. In the Refresh Name field, specify the refresh input parameter.
  4. In the HTTP Method field, select the HTTP methods that are eligible for caching.
  5. In the Dispatcher method field, select the dispatcher methods for a servlet filter. For example, selecting FORWARD and REQUEST methods means that the filter must be applied to requests directly from the client and also forward the requests.
In the Key Field section of the screen, you can specify 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.

To add a Key Field:

  1. Click Add.
  2. In the Key Field Name column, enter the input parameter name.
  3. In the Key Field Scope column, select the scope in which the input parameter can be present.
To delete a Key Field:
  1. Select the row to be deleted.
  2. Click Delete.
In the Constraint section of the screen, you can specify the cacheability constraint for the given URLPattern or ServletName value. All the constraints must pass for a response to be cached. The following table lists the Constraint parameters. The first column lists the name of the parameter and the second column provides a description of the parameter and the default value for the parameter whereever applicable.
Column Name Value
Name The input parameter name.
Scope Select the scope in which the input parameter can be present.
Cache on Match If set to true, caches the response if matching succeeds. Overrides the same attribute defined in the Value of Constraint dialog.
Failure If set to true, caches the response if matching fails. Overrides the same attribute in he Value of Constraint dialog.
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 select the Value column, the Edit Value button becomes active so you can edit the value constraints in the Edit Value dialog.


Legal Notices