Chrome Flags Reference

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

--skia-resource-cache-limit-mb

What does --skia-resource-cache-limit-mb do?

Specifies the max number of bytes that should be used by the skia resource cache. The previous entries are purged from the cache when the memory useage exceeds this limit.

Usage

CLILaunch Chrome with --skia-resource-cache-limit-mb using CLI

chrome --skia-resource-cache-limit-mb

PuppeteerLaunch Chrome with --skia-resource-cache-limit-mb using Puppeteer

const browser = await puppeteer.launch({
  args: ['--skia-resource-cache-limit-mb']
});

PlaywrightLaunch Chrome with --skia-resource-cache-limit-mb using Playwright

const browser = await chromium.launch({
  args: ['--skia-resource-cache-limit-mb']
});

SeleniumLaunch Chrome with --skia-resource-cache-limit-mb using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--skia-resource-cache-limit-mb')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK