ScriptingScriptResourceHandlerSection.EnableCompression Property

Definition

Gets or sets whether compression is enabled for script files that are embedded as resources in an assembly.

[System.Configuration.ConfigurationProperty("enableCompression", DefaultValue=true)]
public bool EnableCompression { get; set; }

Property Value

true if compression is enabled for script files that are embedded as resources in an assembly; otherwise, false. The default is true.

Attributes

Remarks

The EnableCompression property gets or sets the value that indicates whether the following will be compressed:

  • Script files that are embedded as resources in an assembly.

  • Localization objects, such as string resources that are contained in a resource file (.resx).

  • Scripts that are served by the script resource handler.

Note

If the requesting browser does not support compression, this property has no effect.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1