From 194aeb0e2190d058e45985e416691f95d94f9623 Mon Sep 17 00:00:00 2001 From: Miles Hilton Date: Mon, 13 May 2024 15:50:48 -0400 Subject: [PATCH] adding args --- src/pptr-utils/default.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/pptr-utils/default.ts b/src/pptr-utils/default.ts index 8720c77..21948e3 100644 --- a/src/pptr-utils/default.ts +++ b/src/pptr-utils/default.ts @@ -21,7 +21,19 @@ export const savePageContent = async (index, outDir, page: Page, screenshot = tr * Default Puppeteer options for dev */ export const defaultPuppeteerBrowserOptions = { - args: ['--no-sandbox', '--disable-dev-shm-usage', '--ignore-certificate-errors', '--autoplay-policy=no-user-gesture-required'], + args: [ + '--no-sandbox', + '--disable-dev-shm-usage', + '--ignore-certificate-errors', + '--autoplay-policy=no-user-gesture-required', + '--aggressive-cache-discard', + '--disable-cache', + '--disable-application-cache', + '--disable-offline-load-stale-cache', + '--disable-gpu-shader-disk-cache', + '--media-cache-size=0', + '--disk-cache-size=0', + ], defaultViewport: null, headless: true };