Chrome Flags Reference

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

--disable-back-forward-cache

What does --disable-back-forward-cache do?

Disables the BackForwardCache feature.

Usage

CLILaunch Chrome with --disable-back-forward-cache using CLI

chrome --disable-back-forward-cache

PuppeteerLaunch Chrome with --disable-back-forward-cache using Puppeteer

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

PlaywrightLaunch Chrome with --disable-back-forward-cache using Playwright

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

SeleniumLaunch Chrome with --disable-back-forward-cache using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-back-forward-cache')

driver = webdriver.Chrome(options=options)