Cefsharp: WPF, How set different CachePath for new window with browser

Created on 21 May 2017  路  4Comments  路  Source: cefsharp/CefSharp

Hello.
I'm trying set different CachePath for all new windows with browser in Cefsharp.WPF.
This code work in Cefsharp.Winforms:
var requestContextSettings = new RequestContextSettings { CachePath = Path }; var requestContext = new RequestContext(requestContextSettings); Browser = new ChromiumWebBrowser("https://google.com") { RequestContext = requestContext, };
pnl_Browser.Controls.Add(Browser);
And each new window has its own Cache.
But, when I'm trying to do this in Cefsharp.WPF it doesn't work
var requestContextSettings = new RequestContextSettings {CachePath = PathToCache}; var requestContext = new RequestContext(requestContextSettings); Browser = new ChromiumWebBrowser {RequestContext = requestContext};

How can i set different CachePath in Cefsharp.WPF?

more-details-needed-from-op unverified wpf

Most helpful comment

Same problem. Any fix?

All 4 comments

Please use the Bug Report template provided at https://github.com/cefsharp/CefSharp/blob/master/ISSUE_TEMPLATE.md#bug-report

Also please fork the https://github.com/cefsharp/CefSharp.MinimalExample project and provide an example that reproduces your problem.

Please fill out the Bug Report template provided above. This issue will be closed if no further feedback is provided.

Same problem. Any fix?

The location where data for the global browser cache will be stored on disk.
In this value is non-empty then it must be an absolute path that is must be either
equal to or a child directory of CefSettings.RootCachePath (if RootCachePath
is empty it will default to this value).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jdc20181 picture jdc20181  路  4Comments

zhuangpearl picture zhuangpearl  路  4Comments

looselive picture looselive  路  4Comments

marci4 picture marci4  路  4Comments

duoduoxi picture duoduoxi  路  3Comments