ResponseCacheLocation Enum

Definition

Determines the value for the "Cache-control" header in the response.

C#
public enum ResponseCacheLocation
Inheritance
ResponseCacheLocation

Fields

Name Value Description
Any 0

Cached in both proxies and client. Sets "Cache-control" header to "public".

Client 1

Cached only in the client. Sets "Cache-control" header to "private".

None 2

"Cache-control" and "Pragma" headers are set to "no-cache".

Applies to

Product Versions
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