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