Oracle iPlanet Web Proxy Server 4.0.14 Configuration File Reference

send-file

Applicable in Service-class directives.

The send-file function sends the contents of the requested file to the client. This function provides the Content-Type, Content-Length, and Last-Modified headers.

Most requests are handled by this function using the following directive, which usually comes last in the list of Service-class directives in the default object, so that it acts as a default:

Service method="(GET|HEAD|POST)" fn="send-file"

This directive is invoked if the method of the request is GET, HEAD, or POST.

Parameters

The following table describes the nocache parameter, which is specific to the send-file function.

Table 5–117 send-file parameters

Parameter  

Description  

nocache

(Optional) Prevents the server from caching responses to static file requests. For example, you can specify that files in a particular directory are not to be cached, which is useful for directories where the files change frequently. 

The value you assign to this parameter is ignored. If you do not want to use this parameter, do not include it. 

method

(Optional) Common to all Service-class functions.

query

(Optional) Common to all Service-class functions.

UseOutputStreamSize

(Optional) Common to all Service-class functions.

flushTimer

(Optional) Common to all Service-class functions.

ChunkedRequestBufferSize

(Optional) Common to all Service-class functions.

ChunkedRequestTimeout

(Optional) Common to all Service-class functions.

bucket

(Optional) Common to all obj.conf functions.

Example


Service method="(GET|HEAD)" fn="send-file"

In the following example, the server does not cache static files from /export/somedir/ when requested by the URL prefix /myurl.


<Object name=default>...NameTrans fn="pfx2dir" from="/myurl" 
	dir="/export/mydir", name="myname"...Service method=(GET|HEAD|POST) 
	fn=send-file...</Object><Object name="myname">
	Service method=(GET|HEAD) fn=send-file 
	nocache=""</Object>