NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_setexpires(n) 5.0.0a naviserver "NaviServer Built-in Commands"

Name

ns_setexpires - Set the current connections Expires header field to the current time plus seconds seconds

Table Of Contents

Synopsis

Description

Set the current connections Expires header to the current time plus seconds

COMMANDS

ns_setexpires ?--cache-control cache-response-directive? seconds

Set the output headers contain the "Expires" header. When "-cache-control" is specified the function adds as well a "max-age" header field to the response with the specified cache response directive (such as public, private, no-cache, no-store, no-transform, must-revalidate, or proxy-revalidate)

EXAMPLES

   % ns_setexpires 60

Set the "Expires" header field to expire in 1 minute from now.

See Also

ns_conn, ns_time

Keywords

cache