WebKit2.WebContext.prototype.set_disk_cache_directory
function set_disk_cache_directory(directory: String): void { // Gjs wrapper for webkit_web_context_set_disk_cache_directory() }
Set the directory where disk cache files will be stored This method must be called before loading anything in this context, otherwise it will not have any effect.
Note that this method overrides the directory set in the WebKit2.WebsiteDataManager, but it doesn't change the value returned by WebKit2.WebsiteDataManager.prototype.get_disk_cache_directory since the WebKit2.WebsiteDataManager is immutable.
- directory
the directory to set