Επεξεργασία

Κοινή χρήση μέσω


OutputCacheSection.EnableKernelCacheForVaryByStar Property

Definition

Gets or sets a value indicating whether kernel caching is enabled.

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

Property Value

true if kernel caching is enabled; otherwise, false. The default is false.

Attributes

Remarks

If static compression is enabled for the request but the client requested an uncompressed response, then kernel caching is disabled. Only compressed responses are cached in kernel.

Setting the EnableKernelCacheForVaryByStar property to true doesn't ensure kernel caching of responses. Modules in the processing pipeline must set the kernel cache policy.

EnableKernelCacheForVaryByStar is introduced in the .NET Framework version 3.5. For more information, see Versions and Dependencies.

Applies to

See also