次の方法で共有


Response.ExpiresAbsolute

The ExpiresAbsolute property specifies the date and time at which a page cached on a browser expires. If the user returns to the same page before that 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 runs.

Syntax

Response.ExpiresAbsolute [=[date][time]]

Parameters

  • date
    Specifies the date on which the page will expire. The value sent in the Expires header conforms to the RFC-1123 date format.

  • time
    Specifies the time at which the page expires. This value is converted to Greenwich mean time before an Expires header is sent.

Applies To

Response Object

Remarks

If this property is set more than once on a page, the earliest expiration date or time is used.

Example Code

The following example specifies that the page will expire 15 seconds after 1:30 P.M. on May 31, 2001.

<% Response.ExpiresAbsolute=#May 31,2001 13:30:15# %>  

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