Page 1 of 1

Separate proxies for browsers with one cache

PostPosted: Sat Aug 31, 2019 5:14 am
by royalgost
Hello! I have 3 browsers in the project. I need to make every browser have the ability to work with different proxies. I created a new RequestContext for each browser. Browsers open under different proxies, but cookies, cache, etc. are not transmitted between them. We read a lot of information on the Internet, but did not find a solution. Help me please!

CEF Initialization Settings
Code: Select all
var settings = new CefSettings()
            {
                CachePath = CachePath,
                LogFile = CachePath,
                LogSeverity = LogSeverity.Disable,
                AcceptLanguageList = "en-US",
                IgnoreCertificateErrors = true,
                PersistSessionCookies = true,
                UserAgent = userAgent ?? "Mozilla/5.0 (Linux; Android 7.1.1; ASUS_X00ID Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36"
            };


Browser Settings on Opening
Code: Select all
        public BookmakerAuthWindow(string reference, string bookmaker, bool isAuth)
        {
            InitializeComponent();
            var requestContextSettings = new RequestContextSettings { CachePath = CefSharpHelper.CachePath + @"\Browser" };
            browser.RequestContext = new RequestContext(requestContextSettings);
            browser.JavascriptObjectRepository.Register("CallbackService", new CallbackService(), true);
            InitializationComponents(reference, bookmaker, isAuth);
        }


With these settings, they use the same cache but the proxies are the same for everyone. I need the cache to be one for all and different proxies.
I am using WPF.

Re: Separate proxies for browsers with one cache

PostPosted: Sat Aug 31, 2019 10:26 am
by magreenblatt
Separate proxies with same cache is not supported.

Re: Separate proxies for browsers with one cache

PostPosted: Thu Sep 12, 2019 5:07 am
by royalgost
Is it planned to implement such functionality? We are now faced with such a need on the project that 1 cache worked on 3 different windows. Perhaps there are other solutions? Can you tell me? Thank you in advance!

Re: Separate proxies for browsers with one cache

PostPosted: Thu Sep 12, 2019 9:09 am
by magreenblatt
There are no plans to add support.