Partager via


IResponse::put_ExpiresAbsolute

The IResponse::put_ExpiresAbsolute method sets the value of the Response.ExpiresAbsolute property of the Response object.

HRESULT put_ExpiresAbsolute(
      DATE dtExpires
);

Parameters

  • dtExpires
    [in] A date that contains the new ExpiresAbsolute value.

Remarks

If the user returns to the same page before the set date and time, the cached version is displayed. If a time is not specified, the page expires at midnight of that day. If a date is not specified, the page expires at the given time on the day that the script is run. If this property is set more than once on a page, the earliest expiration date or time is used. The date value sent in the expires header conforms to the RFC-1123 date format. The time value is converted to Greenwich Mean Time before an Expires header is sent.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also