Caching
I have followed Scott Guthrie's Linq to XML to read from an RSS file and send the results to a DataList. The code is below:
Dim rssFeed As XDocument = XDocument.Load("http://rss.cnn.com/rss/cnn_latest.rss")
Dim feeds As IEnumerable
feeds = (From item In rssFeed.Descendants("item") _
Select New With { _
.Title = item.Element("title").Value, _
.Link = item.Element("link").Value, _
.Published = item.Element("pubDate").Value, _
.Description = item.Element("description").Value}).Take(5)
DataList1.DataSource = feeds
DataList1.DataBind()
Everything works, however it caches the feed. Is there a way to force the feed not to cache?
Thanks.
|