NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HttpCachePolicy.SetProxyMaxAge

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

[Visual Basic]
Public Sub SetProxyMaxAge( _
   ByVal delta As TimeSpan _
)
[C#]
public void SetProxyMaxAge(
   TimeSpan delta
);
[C++]
public: void SetProxyMaxAge(
   TimeSpan delta
);
[JScript]
public function SetProxyMaxAge(
   delta : TimeSpan
);

Parameters

delta
The time span to set.

Remarks

SetProxyMaxAge does not use sliding expiration and will fail if the expiration date violates the principle of restrictiveness.

See Also

HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace