Appendix F Dynamic Results Caching Functions - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Dynamic Results Caching Functions
The functions described in this appendix allow you to write a results caching
plugin for Netscape Enterprise Server. A results caching plugin, which is a
SAF, caches data, a page, or part of a page in the web server address
Service
space, which the web server can refresh periodically on demand. An
initializes the callback function that performs the refresh.
A results caching plugin can generate a page for a request in three parts:
A header, such as a page banner, which changes for every request
A body, which changes less frequently
A footer, which also changes for every request
Without this feature, a plugin 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 plugin needs to generate only the header
and footer and to call the
following arguments:
header
footer
handle to cache
key to identify the cached object
The web server constructs the whole page by fetching the body from the cache. If
the cache has expired, it calls the refresh function and sends the refreshed page
back to the client.
function (instead of
dr_net_write
Appendix F
SAF
Init
) with the
net_write
337

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Enterprise server 6.1

Table of Contents