OutputCacheSection.EnableKernelCacheForVaryByStar 属性

定义

获取或设置一个值,该值指示是否启用内核缓存。

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 无法确保响应的内核缓存。 处理管道中的模块必须设置内核缓存策略。

EnableKernelCacheForVaryByStar.NET Framework版本 3.5 中引入了 。 有关详细信息,请参见版本和依赖关系

适用于

另请参阅