puppeteer/docs/api/puppeteer.page.setbypassserviceworker.md
Junyan 81f73a55f3
feat: Page.setBypassServiceWorker (#10229)
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2023-05-23 13:51:32 +02:00

551 B

sidebar_label
Page.setBypassServiceWorker

Page.setBypassServiceWorker() method

Toggles ignoring of service worker for each request.

Signature:

class Page {
  setBypassServiceWorker(bypass: boolean): Promise<void>;
}

Parameters

Parameter Type Description
bypass boolean Whether to bypass service worker and load from network.

Returns:

Promise<void>