Click or drag to resize

RequestContextBuilderWithCachePath Method

Version 108.4.130
Sets the Cache Path

Namespace:  CefSharp
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 108.4.130.0
Syntax
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: RequestContextBuilder
Returns RequestContextBuilder instance
See Also