U4-8938 [OutputCache] headers changed from Cache-Control: public to private

This commit is contained in:
Sebastiaan Janssen
2016-09-03 10:16:34 +02:00
parent 71482f0fc9
commit 1b6bf2f331
2 changed files with 6 additions and 8 deletions

View File

@@ -589,13 +589,10 @@ namespace Umbraco.Web.Routing
/// <summary>
/// Gets or sets the <c>System.Web.HttpCacheability</c>
/// </summary>
/// <remarks>Is set to <c>System.Web.HttpCacheability.Private</c> by default, which is the ASP.NET default.</remarks>
private HttpCacheability _cacheability = HttpCacheability.Private;
internal HttpCacheability Cacheability
{
get { return _cacheability; }
set { _cacheability = value; }
}
// Note: we used to set a default value here but that would then be the default
// for ALL requests, we shouldn't overwrite it though if people are using [OutputCache] for example
// see: https://our.umbraco.org/forum/using-umbraco-and-getting-started/79715-output-cache-in-umbraco-752
internal HttpCacheability Cacheability { get; set; }
/// <summary>
/// Gets or sets a list of Extensions to append to the Response.Cache object