Share via


StaticFileOptions.HttpsCompression Property

Definition

Indicates if files should be compressed for HTTPS requests when the Response Compression middleware is available. The default value is Compress.

public:
 property Microsoft::AspNetCore::Http::Features::HttpsCompressionMode HttpsCompression { Microsoft::AspNetCore::Http::Features::HttpsCompressionMode get(); void set(Microsoft::AspNetCore::Http::Features::HttpsCompressionMode value); };
public Microsoft.AspNetCore.Http.Features.HttpsCompressionMode HttpsCompression { get; set; }
member this.HttpsCompression : Microsoft.AspNetCore.Http.Features.HttpsCompressionMode with get, set
Public Property HttpsCompression As HttpsCompressionMode

Property Value

Remarks

Enabling compression on HTTPS requests for remotely manipulable content may expose security problems.

Applies to