![Netscape ENTERPRISE SERVER 6.1 Скачать руководство пользователя страница 337](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653337.webp)
337
Appendix
F
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
Service
SAF, caches data, a page, or part of a page in the web server address
space, which the web server can refresh periodically on demand. An
Init
SAF
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
dr_net_write
function (instead of
net_write
) with 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.
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...