Click OK to apply changes.

6-22 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache 1. Create a blank page for the entry URL, such as , that redirects to the real entry page. 2. Configure the origin server to create a session when the blank page is requested without a session cookie. 3. Create a session caching rule for the real entry page and the blank page, as described in Section 6.8.6 , and click both the Cache With and Cache Without options. With this configuration, all initial user requests to the entry URL first go to the blank page, which requires minimal resources to generate. The clients receive the response and session establishment from the application Web server. Subsequent redirected requests to the entry page carry the session, enabling the entry page to be served out of the cache. Another solution is to use a Javascript that sets a session cookie for the pages requiring sessions: 1. Create a Javascript that sets a session cookie when one does not exist. 2. Add the Javascript to each of the pages that require the session. 3. Create caching rules for the Javascript and the session pages, as described in Section 6.8.1 and Section 6.8.6 .

6.9 Monitoring Summary Settings for Caching Rules

Fusion Middleware Control provides statistics for assessing the effectiveness of configured caching rules. To view caching-rule statistics: 1. Navigate to the Web Cache Home page in Fusion Middleware Control. See Section 2.6.2 .

2. From the Web Cache menu, select Administration and then Caching Rules.

The Caching Rules page displays. 3. Scroll to the far right to view the statistics for a caching rule: ■ Multi-Versionings: Shows whether this caching rule contains settings for requests with multiple versions. ■ Sessions: Shows whether this caching rule contains settings for requests with a cookie, embedded URL parameter, or POST body parameter with user session information. ■ Error Responses: Shows whether this caching rule contains settings for requests with HTTP error responses. ■ Matched: Displays the number of requests that matched the caching rule. See Section 8.2 to view the objects cached by Oracle Web Cache Note: Using the Javascript solution, it is not necessary to create a session caching rule for the pages requiring sessions.