Reloads current page. Optionally can reload current page by ignoring cache.
When set to true, the cache is ignored during reload.
Reloads current page. Optionally can reload current page by ignoring cache.
Visual Basic |
---|
Public Sub Reload( _ ByVal IgnoreCache As Boolean _ ) |
When set to true, the cache is ignored during reload.
The method calls upon CEF Browser's default reload mechanism.
Private Sub mnuNoCache_Click() On Error Resume Next CodeMax1.Text = "" WebKitX1.Reload True Err.Clear End Sub Private Sub mnuReload_Click() On Error Resume Next CodeMax1.Text = "" WebKitX1.Reload False Err.Clear End Sub Private Sub WebKitX1_OnCreate(ByVal Settings As WebKitXCEF3Lib.ISettings, CommandLineSwitches As String) Settings.cache_path = App.Path + "\MyCache" End Sub Private Sub WebKitX1_OnBrowserReady() On Error Resume Next ' Clear performance counters WebKitX1.ClearPerformanceCounters ' Navigate WebKitX1.Open "https://www.mobilefx.com" If Err.Number <> 0 Then MsgBox Err.Description, vbCritical End If Err.Clear End Sub Private Sub WebKitX1_OnPageComplete(ByVal URL As String) ' Get Navigation Performance Counters (JSON or XML) CodeMax1.Text = WebKitX1.GetPerformanceCounters(False) End Sub