Web part not updating

Jun 6, 2007 at 1:24 PM
I may be missing the point of this completely, but here's what I did. I installed this web part, and put it on a wss 3.0 page. It showed the rss feed fine. So I took something I already had, wrote some xslt for it, and put the xml and xslt urls with a 2 sec refresh into the misc for the properties. It pulls the data correctly and displays it how I want, but it doesn't refresh at all. In fact, it seems like not only is it not refreshing, it is caching it sometimes too.

Am I missing something?
Coordinator
Jul 27, 2007 at 4:39 PM
You'll need to make sure that the caching policy is set correctly. First, try it against the WSS RSS feed, and ensure that that updates correctly. You may also want to get the latest version of the source code.

Using c#, you may want to use the following code example.

public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/xml";
context.Response.Cache.SetCacheability(HttpCacheability.Private);
context.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
context.Response.Cache.SetExpires(DateTime.Now.AddYears(-10));
}

Sorry for the late response! Let me know if I can help you further.

Daniel Larson