Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF, How set different CachePath for new window with browser #2055

Closed
Spocher opened this issue May 21, 2017 · 4 comments
Closed

WPF, How set different CachePath for new window with browser #2055

Spocher opened this issue May 21, 2017 · 4 comments

Comments

@Spocher
Copy link

Spocher commented May 21, 2017

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?

@amaitland
Copy link
Member

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.

@amaitland
Copy link
Member

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

@merceyz merceyz closed this as completed Aug 28, 2017
@A-VORONKIN
Copy link

Same problem. Any fix?

@nFox18
Copy link

nFox18 commented Jun 10, 2020

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants