Basic Tasks for Configuring and Monitoring Caching Rules

Caching and Compressing Content 6-13

a. From Site Specific Caching Rules or Global Caching Rules section, click

Create . The Create Caching Rule page displays with the General tab in view. b. Complete the elements using the descriptions in Table 6–4 . When completing the elements, in the Match Criteria section, select to base match evaluation on the request URL expression, the response MIME type, or both criteria. If you do not select a match criteria, Oracle Web Cache matches the rule to all URLs and all MIME types. If you find entering URL expressions is cumbersome for your rules, select the MIME Type option in the Match Criteria section. See Section 6.4 for further information about using the MIME Type option in place of complicated URL expressions.

c. Click OK to apply changes and return to the Caching Rules page. It is not

necessary to click Apply in the Create Caching Rule page to apply this change. Notice the caching rule is added to the Site Specific Caching Rules or Global Caching Rules table. 4. Repeat Step 3 for each additional rule.

5. Use the Move Up and Move Down icons to change the order in which the rules

are matched against requests. The order of the rules is important. Oracle Web Cache matches higher priority rules first.

6. Click Apply to apply the move change.

7. In the Caching Rules page, click Enable to enable rules.

If you do not click Enable, Oracle Web Cache ignores any the settings for the rule. 8. Restart Oracle Web Cache. See Section 2.13 . Table 6–4 Caching Rules - General Page Element Description Name Enter a string that uniquely identifies the caching rule. Description Enter a descriptive comment about the caching rule. Enabled Select to enable the caching rule; deselect to disable the caching rule temporarily without losing the rule definition. Site Displays the site for which to apply this rule. If you do not see the site required, create one, following the procedure in Section 2.11.3 . Cache Select this option to instruct Oracle Web Cache to cache content; deslect this option to instruct Oracle Web Cache to forward requests to the origin server and to not cache the content. Expiration From the list, select an expiration policy to apply to the objects. If you do not see an expiration policy suitable for the objects, click the Expiration Policies link.