HttpCachePolicyBase.SetProxyMaxAge(TimeSpan) 方法

定义

当在派生类中重写时,将Cache-Control: s-maxage HTTP 标头设置为指定的时间跨度。When overridden in a derived class, sets the Cache-Control: s-maxage HTTP header to the specified time span.

public:
 virtual void SetProxyMaxAge(TimeSpan delta);
public virtual void SetProxyMaxAge (TimeSpan delta);
abstract member SetProxyMaxAge : TimeSpan -> unit
override this.SetProxyMaxAge : TimeSpan -> unit
Public Overridable Sub SetProxyMaxAge (delta As TimeSpan)

参数

delta
TimeSpan

要将 Cache-Control: s-maxage 标头设置到的时间跨度。The time span to set the Cache-Control: s-maxage header to.

例外

始终。Always.

适用于