Hi,
I have a billboards App which takes X number of URLs and displays them (rotates through them one-at-a-time) using a TWebBrowser component.
This works great, except that once the TWebBrowsers has loaded a URL it always uses whats in Internet Explorer's cache for every subsequent load (until a reboot). For example, a couple of images may have changed in the remote URL but the TWebBrowser component will not show these changes and use what is in the cache instead.
The obvious solution is to tell the TWebBrowser to not load from cache at a specified interval, i.e.
This is not really a great solution, as some of these URLs have 5MB+ of images. Downloading the page every 5 minutes will use up a lot of download, especially if run over any period of time.
Any ideas on how I can tell whether the URL I am viewing from cache is different to the remote URL?
Thanks in advance.
I have a billboards App which takes X number of URLs and displays them (rotates through them one-at-a-time) using a TWebBrowser component.
This works great, except that once the TWebBrowsers has loaded a URL it always uses whats in Internet Explorer's cache for every subsequent load (until a reboot). For example, a couple of images may have changed in the remote URL but the TWebBrowser component will not show these changes and use what is in the cache instead.
The obvious solution is to tell the TWebBrowser to not load from cache at a specified interval, i.e.
Code:
var
Flags: OLEVariant
begin
Flags := 4; //NavNoReadFromCache
WebBrowser1.Navigate(NEXT_URL,Flags);
end;
This is not really a great solution, as some of these URLs have 5MB+ of images. Downloading the page every 5 minutes will use up a lot of download, especially if run over any period of time.
Any ideas on how I can tell whether the URL I am viewing from cache is different to the remote URL?
Thanks in advance.