HttpResponse.Expires 屬性


取得或設定瀏覽器上快取網頁到期以前的分鐘數。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 是提供來與 ASP 先前版本相容。Expires is provided for compatibility with earlier versions of ASP.

 property int Expires { int get(); void set(int value); };
public int Expires { get; set; }
member this.Expires : int with get, set
Public Property Expires As Integer


在網頁到期前的分鐘數。The number of minutes before the page expires.


ExpiresAbsolute Cache、和屬性已HttpCachePolicy被取代,以改用可透過內建物件取得之類別的方法,以控制 Internet Information Services (IIS)輸出快取CacheControl 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 Internet Information Services (IIS) output cache and client caches.