my problems
cefsharp sometimes overlooked js update and will still go to the cache.
I observed that the site has not been updated for some time, modify js will have this problem.
my environment
win10+vs2015+winforms+cefsharp49
my Configure the code
var settings = new CefSettings { Locale = "zh-CN" };
if (!string.IsNullOrEmpty(HapContext.Configuration.ProxyAdress)
&& !string.IsNullOrEmpty(HapContext.Configuration.Port))
{
settings.CefCommandLineArgs.Add("proxy-server",
HapContext.Configuration.ProxyAdress + ":" + HapContext.Configuration.Port);
}
//settings.CefCommandLineArgs.Add("enable-media-stream", "1");
settings.RegisterScheme(new CefCustomScheme
{
SchemeName = "webbrowser",
SchemeHandlerFactory = new SchemeHandlerFactory()
});
settings.UserAgent = UrlManage.UserAgent;
settings.IgnoreCertificateErrors = true;
settings.CachePath = AppDomain.CurrentDomain.BaseDirectory + @"cache\";
Cef.Initialize(settings, true, false);
my attempt
1.In the browser and cefsharp enter the same URL, get a different js
2.search stackoverflow,I found the problem is similar to mineenter link description here
But there is no answer to this question.
3.Search github also did not find the relevant information
4.When I call Browser.load (Browser.Address), js loads again,Everything is normal again
Any help is much appreciated.
sorry for my english.