共用方式為


StaticFileOptions.HttpsCompression 屬性

定義

指出當回應壓縮中介軟體可用時,是否應該針對 HTTPS 要求壓縮檔案。 預設值是 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

屬性值

備註

啟用遠端可管理內容的 HTTPS 要求壓縮可能會公開安全性問題。

適用於