// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNetCore.Mvc { /// /// Defines a set of settings which can be used for response caching. /// public class CacheProfile { /// /// Gets or sets the duration in seconds for which the response is cached. /// If this property is set to a non null value, /// the "max-age" in "Cache-control" header is set in the /// . /// public int? Duration { get; set; } /// /// Gets or sets the location where the data from a particular URL must be cached. /// If this property is set to a non null value, /// the "Cache-control" header is set in the . /// public ResponseCacheLocation? Location { get; set; } /// /// Gets or sets the value which determines whether the data should be stored or not. /// When set to , it sets "Cache-control" header in /// to "no-store". /// Ignores the "Location" parameter for values other than "None". /// Ignores the "Duration" parameter. /// public bool? NoStore { get; set; } /// /// Gets or sets the value for the Vary header in . /// public string VaryByHeader { get; set; } } }