System.Web.HttpCachePolicy.SetProxyMaxAge Method

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

Syntax

public void SetProxyMaxAge (TimeSpan delta)

Parameters

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

Remarks

The HttpCachePolicy.SetProxyMaxAge(TimeSpan) method does not use sliding expiration and will fail if the expiration date violates the principle of restrictiveness.

HttpCachePolicy.SetProxyMaxAge(TimeSpan) is introduced in the .NET Framework version 3.5. For more information, see The .NET Framework 3.5 Architecture.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0