File: ResponseCacheLocation.cs
Web Access
Project: src\src\Mvc\Mvc.Core\src\Microsoft.AspNetCore.Mvc.Core.csproj (Microsoft.AspNetCore.Mvc.Core)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.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
}