Sun Java System Web Server 7.0 Update 2 Administrator's Configuration File Reference

httpdate

The httpdate function returns an RFC 1123 date/time stamp for use in HTTP header fields such as Expires.

Syntax

httpdate(time)

Arguments

The following table describes the argument for the expression function.

Table A–9 httpdate Argument

Argument 

Description 

time

The time value 

Example

The following obj.conf code could be used to set an Expires header that indicates a response is not cached for more than one day:

ObjectType fn="set-variable"
           insert-srvhdrs="$(httpdate($time + 86400))"