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 );
SetMaxAge [RB21] does not use sliding expiration and will fail if the expiration date violates the principle of restrictiveness[RB22].
HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace