Skip Navigation Links | |
Exit Print View | |
Introduction to Oracle Solaris 11 Network Services Oracle Solaris 11.1 Information Library |
Network Cache and Accelerator (Overview)
Managing Web Cache Servers (Task Map)
Interpositioning Library for Daemon Support of the Door Server
Administering the Caching of Web Pages (Tasks)
How to Enable Caching of Web Pages
How to Disable Caching of Web Pages
How to Enable or Disable NCA Logging
How to Load the Socket Utility Library for NCA
The following sections cover the files and the components that are needed to use NCA. Also, specifics about how NCA interacts with the web server are included.
You need several files to support the NCA feature. Many of these files are ASCII, but some of the files are binary. The following table lists all of the files.
Table 2-1 NCA Files
|
The NCA feature includes the following components.
Kernel module, ncakmod
Web server, httpd
The kernel module ncakmod maintains the cache of web pages in system memory. The module communicates with a web server, httpd, through a sockets interface. The family type is PF_NCA.
The kernel module also provides a logging facility that logs all HTTP cache hits. NCA logging writes HTTP data to the disk in binary format. NCA provides a conversion utility for converting binary log files to common log format (CLF).
The following figure shows the flow of data for the conventional path and the path that is used when NCA is enabled.
Figure 2-1 Data Flow With the NCA Service
The following list shows the request flow between the client and the web server.
An HTTP request is made from the client to the web server.
If the page is in cache, the in-kernel cache web page is returned.
If the page is not in cache, the request goes to the web server to retrieve or update the page.
Depending on the HTTP protocol semantics that are used in the response, the page is cached or not. Then the page is returned to the client. If the Pragma: No-cache header is included in the HTTP request, the page is not cached.