This documentation is archived and is not being maintained.

HttpResponse.Expires Property

Gets or sets the number of minutes before a page cached on a browser expires. If the user returns to the same page before it expires, the cached version is displayed. Expires is provided for compatiblility with previous versions of ASP.

[Visual Basic]
Public Property Expires As Integer
[C#]
public int Expires {get; set;}
[C++]
public: __property int get_Expires();
public: __property void set_Expires(int);
[JScript]
public function get Expires() : int;
public function set Expires(int);

Property Value

The number of minutes before the page expires.

Remarks

The Expires, ExpiresAbsolute and CacheControl properties have been deprecated in favor of the methods of the HttpCachePolicy class available through the Cache intrinsic object to control the IIS output cache and client caches.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

Show: