Sun Java System Web Proxy Server 4.0.2 2005Q4 Administration Guide

Caching Local Hosts

If a URL requested from a local host lacks a domain name, the Proxy Server will not cache it in order to avoid duplicate caching. For example, if a user requests http://machine/filename.html and http://machine.example.com/filename.html from a local server, both URLs might appear in the cache. Because these files are from a local server, they may be retrieved so quickly that it is not necessary to cache them anyway.

However, if your company has servers in many remote locations, you may want to cache documents from all hosts to reduce network traffic and decrease the time needed to access the files.

ProcedureTo enable the caching of local hosts

Steps
  1. Access the Server Manager, and click the Caching tab.

  2. Click the Cache Local Hosts link. The Cache Local Hosts page displays.

  3. Select the resource from the drop-down list or click the Regular Expression button, enter a regular expression, and click OK.For more information on regular expressions, see .Chapter 16, Managing Templates and Resources.

  4. Click the enabled button.

  5. Click OK.

  6. Click Restart Required. The Apply Changes page displays.

  7. Click the Restart Proxy Server button to apply the changes.