HttpCachePolicyWrapper.SetProxyMaxAge(TimeSpan) Method

Definition

Sets the Cache-Control: s-maxage HTTP header to the specified time span.

C#
public override void SetProxyMaxAge(TimeSpan delta);

Parameters

delta
TimeSpan

The time span to set the Cache-Control: s-maxage header to.

Exceptions

delta is less than 0.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1