TCefRequestContextSettings
2024-06-28 12:06:34
位创建的浏览器单独设置缓存目录:
settings := cef.TCefRequestContextSettings{} settings.CachePath = et.TCefString(filepath.Join(rootCachePath, fmt.Sprintf("sing_%v", name))) settings.PersistSessionCookies = 1 //bool: 0 或 1 设置是否持久化会话 cookie。 settings.PersistUserPreferences = 1 //bool: 0 或 1 设置是否持久化用户偏好设置。 context = cef.RequestContextRef.New(&settings, nil)