TCnWebBrowser.Refresh(TWebBrowserRefreshOption) Method

Reloads the document currently displayed in the TCnWebBrowser control using the specified refresh options.

Namespace: CNClrLib.Control.WebBrowser
public
 procedure Refresh(Option: TWebBrowserRefreshOption);

Parameters

Option
Type: System.Void

One of the CNClrLib.Control.EnumTypes.TWebBrowserRefreshOption values.

The WebBrowser control stores recently visited Web pages in a cache on the local hard disk. Each page can specify an expiration date indicating how long it will remain in the cache. When the control navigates to a page, it saves time by displaying a cached version, if one is available, rather than downloading the page again. The Refresh method forces the WebBrowser control to reload the current page. The type of reload depends on the CNClrLib.Control.EnumTypes.TWebBrowserRefreshOption value specified. If you call the Refresh method with the Completely value, the latest version of the document is downloaded. If you use the IfExpired value, the latest version is downloaded only if the current document has expired. If you use the Normal value, the server sends a copy of the document stored in its own cache.