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.