I am using an EO web element inside windows to load an HTML page. The page seems to be cached, although I use the following on the page. How can I make sure that the page loads with a hard update every time?
I added a window-shaped context menu item for "PageRefresh", so it launches CommandIds.ReloadNoCachewhen a menu item is selected. How can I do this on the Download page.
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
Run codeHide resultI have the following code to add a menu item to execute PageRefresh, which works fine, but I want this to happen to the user launching the menu item.
private void WebView_BeforeContextMenu(object sender, BeforeContextMenuEventArgs e)
{
e.Menu.Items.Clear();
e.Menu.Items.Add(new EO.WebBrowser.MenuItem("ViewSource", CommandIds.ViewSource));
e.Menu.Items.Add(new EO.WebBrowser.MenuItem("PageRefresh", CommandIds.ReloadNoCache));
}
Run codeHide result
source
share