c# - EO WevBrowser Page cache issue -


i using eo webview inside windows load html page. page seems cache though using following in page. how can make sure page loads hard refresh each time?

i have added context menu item in windows form "pagerefresh", runs commandids.reloadnocache on selecting menu item. how make happen on page load.

    <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" />

i have following code add menu item pagerefresh, works fine, want happen user triggering 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));    }

quoting eo admin response

in current version way clear cache seems delete eo.webbrowser.runtime.cachepath directory. need close webview instances in order so. in future add interface clear cache programmatically without having shutdown webviews.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -