CacheControlHeaderValue.MaxStaleLimit プロパティ

定義

最大時間 (秒単位)、HTTP クライアントは有効期限を超えた応答を許容できます。

public:
 property Nullable<TimeSpan> MaxStaleLimit { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? MaxStaleLimit { get; set; }
member this.MaxStaleLimit : Nullable<TimeSpan> with get, set
Public Property MaxStaleLimit As Nullable(Of TimeSpan)

プロパティ値

Nullable<TimeSpan>

時間 (秒単位)。

注釈

このプロパティは、HTTP 要求のキャッシュ制御ヘッダー フィールドで "max-stale" ディレクティブに割り当てられた値を表します。

プロパティに 0 以外の MaxStaleLimit 値が割り当てられている場合、クライアントは、指定した秒数以下で有効期限を超えた応答を受け入れます。 プロパティに値 0 が割り当てられている MaxStaleLimit 場合、クライアントは任意の年齢の古い応答を受け入れます。

適用対象