Expires Property

HttpResponseBase.Expires Property


Gets or sets the number of minutes before a page that is cached on the client or proxy expires. If the user returns to the same page before it expires, the cached version is displayed. Expires is provided for compatibility with earlier versions of Active Server Pages (ASP).

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

public virtual int Expires { get; set; }

Property Value

Type: System.Int32

The number of minutes before the page expires.

Exception Condition


.NET Framework
Available since 3.5
Return to top
© 2016 Microsoft