OutputCacheSection.EnableKernelCacheForVaryByStar 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示是否啟用核心快取。
public:
property bool EnableKernelCacheForVaryByStar { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableKernelCacheForVaryByStar", DefaultValue=false)]
public bool EnableKernelCacheForVaryByStar { get; set; }
[<System.Configuration.ConfigurationProperty("enableKernelCacheForVaryByStar", DefaultValue=false)>]
member this.EnableKernelCacheForVaryByStar : bool with get, set
Public Property EnableKernelCacheForVaryByStar As Boolean
屬性值
true若啟用核心快取;否則,。 false 預設值為 false。
- 屬性
備註
若請求啟用靜態壓縮,但用戶端請求未壓縮回應,則核心快取將被停用。 核心中僅快取壓縮回應。
將屬性設 EnableKernelCacheForVaryByStar 為 並 true 不能確保回應的 kernel 快取。 處理管線中的模組必須設定核心快取政策。
EnableKernelCacheForVaryByStar 在 .NET Framework 3.5 版本中引入。 欲了解更多資訊,請參閱 版本與相依關係。