diff --git a/libcef/browser/net/url_request_context_getter_impl.cc b/libcef/browser/net/url_request_context_getter_impl.cc index f967dd26e..b4921619a 100644 --- a/libcef/browser/net/url_request_context_getter_impl.cc +++ b/libcef/browser/net/url_request_context_getter_impl.cc @@ -241,11 +241,14 @@ net::URLRequestContext* CefURLRequestContextGetterImpl::GetURLRequestContext() { storage_->set_http_server_properties(base::WrapUnique( new net::HttpServerPropertiesImpl)); + base::FilePath http_cache_path; + if (!cache_path.empty()) + http_cache_path = cache_path.Append(FILE_PATH_LITERAL("Cache")); std::unique_ptr main_backend( new net::HttpCache::DefaultBackend( cache_path.empty() ? net::MEMORY_CACHE : net::DISK_CACHE, net::CACHE_BACKEND_DEFAULT, - cache_path, + http_cache_path, 0, BrowserThread::GetMessageLoopProxyForThread( BrowserThread::CACHE)));