Enables the use of a preconfigured
LiveViewServer that serves snapshots just before a page would be recycled by
PuppeteerPool. If there are no clients connected, it has close to zero impact on performance.
Maximum number of open pages (i.e. tabs) per browser. When this limit is reached, new pages are loaded in a new browser instance.
Maximum number of requests that can be processed by a single browser instance. After the limit is reached, the browser is retired and new requests are handled by a new browser instance.
All browser management operations such as launching a new browser, opening a new page or closing a page will timeout after the set number of seconds and the connected browser will be retired.
Indicates how often are the open Puppeteer instances checked whether they can be closed.
When Puppeteer instance reaches the
retireInstanceAfterRequestCount limit then it is considered retired and no more tabs will be opened. After the
last tab is closed the whole browser is closed too. This parameter defines a time limit between the last tab was opened and before the browser is
closed even if there are pending open tabs.
Options used by
Apify.launchPuppeteer() to start new Puppeteer instances.
Enables recycling of disk cache directories by Chrome instances. When a browser instance is closed, its disk cache directory is not deleted but it's used by a newly opened browser instance. This is useful to reduce amount of data that needs to be downloaded to speed up crawling and reduce proxy usage. Note that the new browser starts with empty cookies, local storage etc. so this setting doesn't affect anonymity of your crawler.
Beware that the disk cache directories can consume a lot of disk space. To limit the space consumed, you can pass the
X is the approximate maximum number of bytes for disk cache.
Do not use the
recycleDiskCache setting together with
--disk-cache-dir argument in
launchPuppeteerargs, the behavior is undefined.
With this option selected, all pages will be opened in a new incognito browser context, which means that they will not share cookies or cache and their resources will not be throttled by one another.
An array of custom proxy URLs to be used by the
PuppeteerPool instance. The provided custom proxies' order will be randomized and the resulting list
rotated. Custom proxies are not compatible with Apify Proxy and an attempt to use both configuration options will cause an error to be thrown on