Bagikan melalui


CacheControlHeaderValue.NoCache Properti

Definisi

Apakah klien HTTP bersedia menerima respons cache.

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

Nilai Properti

true jika klien HTTP tidak bersedia menerima respons cache; jika tidak, false.

Keterangan

Properti ini mewakili direktif "no-cache" di bidang header kontrol cache pada permintaan HTTP atau respons HTTP.

NoCache Ketika properti diatur untuk true hadir dalam pesan permintaan HTTP, aplikasi harus meneruskan permintaan ke server asal meskipun memiliki salinan cache dari apa yang diminta.

Berlaku untuk