I have been trying to get my PivotViewer implementation to NOT cache the HttpResponse but have not been successful. How does one set the expiration of a Response object? I have been doing the following.
_HttpContext.Response.Expires = 0;
_HttpContext.Response.ExpiresAbsolute = DateTime.Now.Subtract( new TimeSpan( 1, 0, 0, 0 ) );
_HttpContext.Response.CacheControl = "no-cache";
The problem is - subsequent call to display my PivotViewer always display the results of the first call. I am not using a static CXML - I am using the PivotServer tools and creating it dynamically.
What I want to know is how to set the expiry of the page so that each Pivot View request creates a HttpResponse or has the PivotViewer got a bug in it and it is ignoring cache control?