Click or drag to resize

RequestContextBuilderWithCachePath Method

Version 94.4.20
Sets the Cache Path

Namespace:  CefSharp
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version:
public RequestContextBuilder WithCachePath(
	string 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