Click Apply Changes. Excluding the Value of Embedded URL or POST Body Parameters

Caching and Compressing Content 6-19 The following webcache.xml fragment shows the User-Agent remapping: USERAGENTREMAPRULE MATCHSTRING=MSIE MAPPEDUSERAGENT=MSIE MAPTYPE=USERAGENT USERAGENTREMAPRULE MATCHSTRING=Mozilla MAPPEDUSERAGENT=MOZ MAPTYPE=USERAGENT If an incoming request does not match any of the rules, Oracle Web Cache appends a default mapping to the request. The default value of the x-Oracle-Mapped-User-Agent header is DEFAULT_USER_AGENT. These mapping rules are executed for every incoming request. If you create several mapping rules, you may experience a performance degradation. 5. Locate the MULTIVERSIONHEADERSRULE subelement of CACHEABILITYRULE for the caching rule created in Step 1. MULTIVERSIONHEADERSRULE HTTPHEADER NAME=User-Agent MULTIVERSIONHEADERSRULE 6. To match on the value of the MAPPEDUSERAGENT string rather than the entire User-Agent value, change the User-Agent header to x-Oracle-Mapped-User-Agent in the HTTPHEADER attribute of the rule: MULTIVERSIONHEADERSRULE HTTPHEADER NAME=x-Oracle-Mapped-User-Agent MULTIVERSIONHEADERSRULE 7. Save webcache.xml. 8. Restart Oracle Web Cache using opmnctl. See Section 2.13.1 .

6.8.5 Configuring Error Responses for Rules

To understand how you can cache HTTP error responses to save origin server resources, see Section 6.5.3 . To create a caching rule for an error response: 1. Create a caching rule. See Section 6.8.1 .

2. From the Site Specific Caching Rules or the Global Caching Rules section of the

Caching Rules page, select the rule you created and click Edit. The Create Caching Rule page displays.

3. Click the Error Responses tab.

Table 6–5 GLOBALCACHINGRULES Subelements Subelement Description MATCHSTRING Enter the pattern that used to match the incoming request header. Note: You can use the wildcard to pattern match for multiple browser type variants. For example, Mozilla can be used to match all variations of Mozilla. MAPPEDUSERAGENT Enter a unique value of the User-Agent pattern that to be added to the x-Oracle-Mapped-User-Agent request header by Oracle Web Cache. MAPTYPE Enter USERAGENT to pattern match on the User-Agent request header.