HttpCachePolicyElement.MaximumAge 属性
定义
获取或设置从缓存返回的资源所允许的最大生存期。Gets or sets the maximum age permitted for a resource returned from the cache.
public:
property TimeSpan MaximumAge { TimeSpan get(); void set(TimeSpan value); };
[System.Configuration.ConfigurationProperty("maximumAge", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public TimeSpan MaximumAge { get; set; }
[<System.Configuration.ConfigurationProperty("maximumAge", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.MaximumAge : TimeSpan with get, set
Public Property MaximumAge As TimeSpan
属性值
一个 TimeSpan 值,它指定配置文件中指定的缓存资源的最大生存期。A TimeSpan value that specifies the maximum age for cached resources specified in the configuration file.
- 属性
注解
如果资源的缓存副本早于指定的时间值,则必须通过将缓存的资源与服务器上的资源进行比较来重新验证资源。If the cached copy of the resource is older than the specified time value, the resource must be revalidated by comparing the cached resource to the resource on the server.