Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--v8-cache-options

What does --v8-cache-options do?

Set options to cache V8 data. (none, code, or default)

Usage

CLILaunch Chrome with --v8-cache-options using CLI

chrome --v8-cache-options

PuppeteerLaunch Chrome with --v8-cache-options using Puppeteer

const browser = await puppeteer.launch({
  args: ['--v8-cache-options']
});

PlaywrightLaunch Chrome with --v8-cache-options using Playwright

const browser = await chromium.launch({
  args: ['--v8-cache-options']
});

SeleniumLaunch Chrome with --v8-cache-options using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--v8-cache-options')

driver = webdriver.Chrome(options=options)