Replies: 1 comment 2 replies
-
Does it work in Chrome when the internet is disconnected? If yes then you can try setting the browser to offline via DevTools see https://bitbucket.org/chromiumembedded/cef/issues/245/direct-control-over-online-offline-status for some background. You can try adapt the example below using (var client = chromiumWebBrowser.GetDevToolsClient())
{
_ = client.Network.SetUserAgentOverrideAsync("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 - Testing 123");
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All,
- What version of the product are you using?
v86.0.24
- What architecture x86 or x64?
Both
- On what operating system?
Win10
- Are you using WinForms, WPF or OffScreen?
WPF
- What steps will reproduce the problem?
I faced with next issues:
SefSharp doesn't load SPA website from cache after close and open window (WPF, Cef version 86.0.24).
I try to open sites with old HTML manifest mechanizm or jakecache.js,
this issue is reproducible in both cases.
I have already set up CachePath folder, and see cache files stored on my hard disk, but looks lake that they doesn't used, if no internet connection.
public partial class MainWindow : Window
{
private readonly string CacheFolderPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\POS Software\Shell";
}
Could you assist, how to solve it?
Beta Was this translation helpful? Give feedback.
All reactions