--disk-cache-dir
What does --disk-cache-dir do?
Use a specific disk cache location, rather than one derived from the UserDatadir.
Usage
CLILaunch Chrome with --disk-cache-dir using CLI
chrome --disk-cache-dirPuppeteerLaunch Chrome with --disk-cache-dir using Puppeteer
const browser = await puppeteer.launch({
args: ['--disk-cache-dir']
});PlaywrightLaunch Chrome with --disk-cache-dir using Playwright
const browser = await chromium.launch({
args: ['--disk-cache-dir']
});SeleniumLaunch Chrome with --disk-cache-dir using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--disk-cache-dir')
driver = webdriver.Chrome(options=options)