The httpdate function returns an RFC 1123 date/time stamp for use in HTTP header fields such as Expires.
httpdate(time)
The following table describes the argument for the expression function.
Table A–9 httpdate Argument
Argument |
Description |
---|---|
time |
The time value |
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))"