HttpCachePolicy
UtcTimestampCreated
VaryByContentEncodings
VaryByHeaders
VaryByParams
AddValidationCallback(HttpCacheValidateHandler, Object)
AppendCacheExtension(String)
GetCacheability()
GetCacheExtensions()
GetETag()
GetETagFromFileDependencies()
GetExpires()
GetIgnoreRangeRequests()
GetLastModifiedFromFileDependencies()
GetMaxAge()
GetNoServerCaching()
GetNoStore()
GetNoTransforms()
GetOmitVaryStar()
GetProxyMaxAge()
GetRevalidation()
GetUtcLastModified()
GetVaryByCustom()
HasSlidingExpiration()
IsModified()
IsValidUntilExpires()
SetAllowResponseInBrowserHistory(Boolean)
SetCacheability(HttpCacheability)
SetCacheability(HttpCacheability, String)
SetETag(String)
SetETagFromFileDependencies()
SetExpires(DateTime)
SetLastModified(DateTime)
SetLastModifiedFromFileDependencies()
SetMaxAge(TimeSpan)
SetNoServerCaching()
SetNoStore()
SetNoTransforms()
SetOmitVaryStar(Boolean)
SetProxyMaxAge(TimeSpan)
SetRevalidation(HttpCacheRevalidation)
SetSlidingExpiration(Boolean)
SetValidUntilExpires(Boolean)
SetVaryByCustom(String)
net6.0
namespace System.Web
{
public class HttpCachePolicy
{
public void SetMaxAge(TimeSpan delta);
}
}
NetFx Compat Lab | 4.0 %
Reference this API |
---|---|
nuget.org | 0.1 %
Reference this API |
Upgrade Planner | 0.1 %
Reference this API |
.NET | 5.06.07.08.09.010.0 |
.NET Core | 2.02.12.23.03.1 |
.NET Framework | 1.01.12.03.03.54.04.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1 |
.NET Standard | 2.02.1 |
Information specific to net6.0 | |
Assembly | Microsoft.AspNetCore.SystemWebAdapters , Version=2.0.0.0, PublicKeyToken=adb9793829ddae60 |
Referencing | Your project needs a package reference to |
Package | Microsoft.AspNetCore.SystemWebAdapters (2.0.0) netstandard2.0 |
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API