--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-cachePuppeteerLaunch 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)