From 99d9c1f08ad01d15bb661c436f1685f71ac43b68 Mon Sep 17 00:00:00 2001 From: aleekaz Date: Tue, 25 Aug 2026 23:36:09 +0300 Subject: [PATCH] fix: stop Chrome downloading an on-device model on every browser start A fresh profile spends most of an idle window talking to optimizationguide-pa.googleapis.com, which serves the Optimization Guide's on-device model. Nothing in a scrape ever reads it, and a driver that opens a new profile per task pays for it every time. Measured over a 60 s window parked on about:blank, with a counting proxy attributing bytes per CONNECT authority: 45.2 MB before, 0.09 MB after. OptimizationHints is the master switch for the service; --disable-background- networking removes the component updater that accounts for the remaining 5.8 MB. Neither flag is visible to a page: 31 fingerprint probes covering navigator, window, WebGL, plugins and userAgentData are byte-identical with and without. --- botasaurus_driver/core/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/botasaurus_driver/core/config.py b/botasaurus_driver/core/config.py index 146aee2..320d147 100644 --- a/botasaurus_driver/core/config.py +++ b/botasaurus_driver/core/config.py @@ -242,9 +242,10 @@ def __init__( "--password-store=basic", "--disable-infobars", "--disable-breakpad", + "--disable-background-networking", "--disable-dev-shm-usage", "--disable-session-crashed-bubble", - "--disable-features=IsolateOrigins,site-per-process", + "--disable-features=IsolateOrigins,site-per-process,OptimizationHints", "--disable-search-engine-choice-screen", ]