RequestContextBuilderWithCachePath Method |
Version 92.0.260
Sets the Cache Path
Namespace:
CefSharp
Assembly:
CefSharp.Core (in CefSharp.Core.dll) Version: 92.0.260.0
Syntax public RequestContextBuilder WithCachePath(
string cachePath
)
public:
RequestContextBuilder^ WithCachePath(
String^ cachePath
)
Parameters
- cachePath
- Type: SystemString
The location where cache data for this request context will be stored on
disk. If this value is non-empty then it must be an absolute path that is
either equal to or a child directory of CefSettings.RootCachePath.
If the value is empty then browsers will be created in "incognito mode"
where in-memory caches are used for storage and no data is persisted to disk.
HTML5 databases such as localStorage will only persist across sessions if a
cache path is specified. To share the global browser cache and related
configuration set this value to match the CefSettings.CachePath value.
Return Value
Type:
RequestContextBuilderReturns RequestContextBuilder instance
See Also