How to prevent reading from cache

Topics: User Forum
Sep 20, 2007 at 5:56 AM
I'm trying to use the HtmlAgilityPack (great work by the way) but I keep getting pages from a cache somewhere (work servers or elsewhere - not sure).

Is there a way that I can request that a fresh page be retrieved from the actual web site?

Thanks

Susan
Coordinator
Nov 17, 2007 at 6:12 PM
Hi,

First, you have to know what cache you are really hitting. The Html Agility Pack has a very basic cache that you can disable setting HtmlWeb.UsingCache to false.
Then for server cache, by default, the Html Agility Pack does not send any header relative to that, so if there is still a problem, you will have to investigate... Welcome to HTTP programming :-)