Options
allowServiceWorkers
Let the page register service workers.
- Type
- boolean
- Default
- true
- Group
- Page behavior
On this page
OverviewLink to this section
With false, the page cannot register service workers, so every request goes to the network instead of a worker cache. Use it for progressive web apps that would otherwise show an older cached version, or whose worker changes the requests you want to capture.
ExampleLink to this section
The same request with the SDK, with cURL and as the raw JSON body.
screenshot.ts
import { Url2Image } from '@url2image/sdk'
const { success, data, message } = await Url2Image({
url: 'https://example.com',
token: process.env.URL2IMAGE_TOKEN,
options: {
allowServiceWorkers: false
}
})Related optionsLink to this section
Every option, grouped, is in the options overview.
Something unclear or missing on this page?
Tell us