Chrome Flags Reference

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

--gpu-disk-cache-size-kb

What does --gpu-disk-cache-size-kb do?

Allows explicitly specifying the shader disk cache size for embedded devices. Default value is 6MB. On Android, 2MB is default and 128KB for low-end devices.

Usage

CLILaunch Chrome with --gpu-disk-cache-size-kb using CLI

chrome --gpu-disk-cache-size-kb

PuppeteerLaunch Chrome with --gpu-disk-cache-size-kb using Puppeteer

const browser = await puppeteer.launch({
  args: ['--gpu-disk-cache-size-kb']
});

PlaywrightLaunch Chrome with --gpu-disk-cache-size-kb using Playwright

const browser = await chromium.launch({
  args: ['--gpu-disk-cache-size-kb']
});

SeleniumLaunch Chrome with --gpu-disk-cache-size-kb using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--gpu-disk-cache-size-kb')

driver = webdriver.Chrome(options=options)