HttpCachePolicyWrapper.SetProxyMaxAge(TimeSpan) 方法

定义

Cache-Control: s-maxage HTTP 标头设置成指定的时间跨度。Sets the Cache-Control: s-maxage HTTP header to the specified time span.

public:
 override void SetProxyMaxAge(TimeSpan delta);
public override void SetProxyMaxAge (TimeSpan delta);
override this.SetProxyMaxAge : TimeSpan -> unit
Public Overrides Sub SetProxyMaxAge (delta As TimeSpan)

参数

delta
TimeSpan

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

例外

delta 小于 0。delta is less than 0.

适用于