aspnetcore/src/Microsoft.AspNet.Mvc.Core/ResponseCacheLocation.cs

26 lines
840 B
C#

// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// Determines the value for the "Cache-control" header in the response.
/// </summary>
public enum ResponseCacheLocation
{
/// <summary>
/// Cached in both proxies and client.
/// Sets "Cache-control" header to "public".
/// </summary>
Any = 0,
/// <summary>
/// Cached only in the client.
/// Sets "Cache-control" header to "private".
/// </summary>
Client = 1,
/// <summary>
/// "Cache-control" and "Pragma" headers are set to "no-cache".
/// </summary>
None = 2
}
}