RequestContextBuilderWithCachePath Method |
Version 130.1.90
Sets the Cache Path
Namespace: CefSharpAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public RequestContextBuilder WithCachePath(
string cachePath
)
public:
RequestContextBuilder^ WithCachePath(
String^ cachePath
)
Parameters
- cachePath String
-
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
RequestContextBuilderReturns RequestContextBuilder instance
See Also