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.SetMaxAge

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

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

Parameters

delta
The time span to set.

Remarks

SetMaxAge [RB21] does not use sliding expiration and will fail if the expiration date violates the principle of restrictiveness[RB22].

See Also

HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace