title: CefSharp ChromiumWebBrowser Load from cache without network connection
body: <p>I've created a .net application that needs to be able to be used without an internet connection. This application uses the CefSharp C# library to embed my rails app in a windows form. Below is my Main() function which sets up the cefsharp settings</p>
  
  <pre><code>static void Main()
          {
              //For Windows 7 and above, best to include relevant app.manifest entries as well
              Cef.EnableHighDPISupport();
  
              //We're going to manually call Cef.Shutdown below, this maybe required in some complex scenarios
              CefSharpSettings.ShutdownOnExit = false;
  
              var cachePath = "cache";
              if (!Directory.Exists(cachePath)) Directory.CreateDirectory(cachePath);
  
  
  
              var settings = new CefSettings();
              settings.CachePath = cachePath;
              settings.LogFile = "f7chromium.log";
  
              settings.BrowserSubprocessPath = @"x86\CefSharp.BrowserSubprocess.exe";
  
              //Perform dependency check to make sure all relevant resources are in our output directory.
              Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
              Debug.WriteLine("Starting");
  
              host = MyServer.Run();
  
              //var browser = new BrowserForm();
  
              Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);
              Application.Run(new Form1());
  
  
  
  
              Console.ReadLine();
          }
  </code></pre>
  
  <p>Code to initialize form</p>
  
  <pre><code>public partial class Form1 : Form
      {
          public ChromiumWebBrowser chromeBrowser;
  
          private static string baseUrl = "https://goo.com/";
  
          public void InitializeChromium()
          {
  
  
              var url = baseUrl;
  
              chromeBrowser = new ChromiumWebBrowser(url);
  
              // Add it to the form and fill it to the form window.
              this.Controls.Add(chromeBrowser);
              chromeBrowser.Dock = DockStyle.Fill;
          }
  
          public Form1()
          {
              FormBorderStyle = FormBorderStyle.None;
              WindowState = FormWindowState.Maximized;
              Bounds = Screen.PrimaryScreen.Bounds;
  
              InitializeComponent();
              InitializeChromium();
  
              HotkeyManager.Current.AddOrReplace("Close", Keys.F10, OnClose);
              HotkeyManager.Current.AddOrReplace("Reset", Keys.F8, OnReset);
              HotkeyManager.Current.AddOrReplace("Refresh", Keys.F5, OnRefresh);
              HotkeyManager.Current.AddOrReplace("DevTools", Keys.F3, DevTools);
          }
  
          private void DevTools(object sender, HotkeyEventArgs e)
          {
              chromeBrowser.ShowDevTools();
          }
  
          private void OnReset(object sender, HotkeyEventArgs e)
          {
              var result = MessageBox.Show("Confirm reset all station data", "Confirm Reset", MessageBoxButtons.OKCancel);
  
              if (result == DialogResult.OK) chromeBrowser.Load(baseUrl + "/reset");
          }
  
          private void OnRefresh(object sender, HotkeyEventArgs e)
          {
              chromeBrowser.Reload();
          }
  
          private void OnClose(object sender, HotkeyEventArgs e)
          {
              var result = MessageBox.Show("Close application?", "Confirm Exit", MessageBoxButtons.OKCancel);
  
              if (result == DialogResult.OK)
              {
                  Process.Start(@"C:\");
                  Process.Start(@"powershell.exe");
                  Close();
              }               
          }
  
          private void Form1_FormClosing(object sender, FormClosingEventArgs e)
          {
               Cef.Shutdown();
          }
  
      }
  </code></pre>
  
  <p>Is it possible to launch the application without an internet connection similarly to how you can load sites in chrome from cache by enabling the show-page-copy button?</p>