It's expensive since you actually pay for the DO, but Cloudflare pays even more for the machine runn
It's expensive since you actually pay for the DO, but Cloudflare pays even more for the machine running the browser. 

If users omit the browser.close() statement, it will stay open, ready to be connected to again and re-used but it will, by default, close automatically after 1 minute of inactivity. Users can optionally extend this idle time up to 10 minutes, by using the keep_alive option, set in milliseconds:


browser = await puppeteer.connect(env.MYBROWSER, sessionId); instead of pupeeteer.launch`
puppeteer.sessions(env.YourBrowserBinding) like in this example here https://developers.cloudflare.com/browser-rendering/get-started/reuse-sessions/
