Chrome Flags Reference

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

--disable-gpu-shader-disk-cache

What does --disable-gpu-shader-disk-cache do?

Disables the GPU shader on disk cache.

Usage

CLILaunch Chrome with --disable-gpu-shader-disk-cache using CLI

chrome --disable-gpu-shader-disk-cache

PuppeteerLaunch Chrome with --disable-gpu-shader-disk-cache using Puppeteer

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

PlaywrightLaunch Chrome with --disable-gpu-shader-disk-cache using Playwright

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

SeleniumLaunch Chrome with --disable-gpu-shader-disk-cache using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-gpu-shader-disk-cache')

driver = webdriver.Chrome(options=options)