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
public int Expires {get; set;}
public: __property int get_Expires();
public: __property void set_Expires(int);
public function get Expires() : int;
public function set Expires(int);

Property Value

The number of minutes before the page expires.


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.


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

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace