Bahasa

CacheControlHeaderValue.OnlyIfCached Properti

Definisi

Apakah cache harus merespons menggunakan entri cache yang konsisten dengan batasan lain dari permintaan HTTP, atau merespons dengan status 504 (Batas Waktu Gateway).

public:
 property bool OnlyIfCached { bool get(); void set(bool value); };
public bool OnlyIfCached { get; set; }
member this.OnlyIfCached : bool with get, set
Public Property OnlyIfCached As Boolean

Nilai Properti

true jika cache harus merespons menggunakan entri yang di-cache yang konsisten dengan batasan lain dari permintaan HTTP, atau merespons dengan status 504 (Batas Waktu Gateway) ; jika tidak, false.

Keterangan

Properti ini mewakili direktif "only-if-cacheed" di bidang header kontrol cache pada permintaan HTTP.

Berlaku untuk