ResponseCacheLocation Enum

Summary

Determines the value for the “Cache-control” header in the response.

Syntax

public enum ResponseCacheLocation

GitHub

View on GitHub

enumeration Microsoft.AspNet.Mvc.ResponseCacheLocation

Fields

Any()

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

Any = 0
Client()

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

Client = 1
None()

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

None = 2