Export (0) Print
Expand All

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 compatibility with previous versions of ASP.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public int Expires { get; set; }
/** @property */
public int get_Expires ()

/** @property */
public void set_Expires (int value)

public function get Expires () : int

public function set Expires (value : int)

Not applicable.

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft