Sun Java System Web Server 7.0 Update 7 NSAPI Developer's Guide

About Results Caching Plug-ins

A results caching plug-in can generate a page for a request in three parts:

Without this feature, a plug-in would have to generate the whole page for every request unless an IFRAME is used, where the header or footer is sent in the first response along with an IFRAME pointing to the body. In this case, the browser must send another request for the IFRAME.

If the body of a page has not changed, the plug-in needs to generate only the header and footer and to call the dr_net_write function instead of net_writewith the following arguments:

The Web Server constructs the whole page by fetching the body from the cache. If the cache has expired, the Web Server calls the refresh function and sends the refreshed page back to the client.

An Init SAF that is visible to the plug-in creates the handle to the cache. The Init SAF must pass the following parameters to the dr_cache_init function: