ResponseCacheLocation 列舉

定義

決定回應中 「Cache-control」 標頭的值。

C#
public enum ResponseCacheLocation
繼承
ResponseCacheLocation

欄位

名稱 Description
Any 0

在 Proxy 和用戶端中快取。 將 「Cache-control」 標頭設定為 「public」。

Client 1

只在用戶端中快取。 將 「Cache-control」 標頭設定為 「private」。

None 2

「Cache-control」 和 「Pragma」 標頭會設定為 「no-cache」。

適用於

產品 版本
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0