force

Type: <boolean>
Default: false
It invalidates the cache copy associated with the resource requested, returning a new fresh copy over the target url.
  • CLI
  • JavaScript
  • Shell
  • Python
  • Ruby
const mql = require('@microlink/mql')

const { status, data } = await mql('https://time-is.vercel.app', { force: true })

mql.render(data)
When it's provided, the header x-cache-status on the response will return BYPASS.
HTTP/2 200
content-type: application/json; charset=utf-8
x-response-time: 1.7s
x-pricing-plan: free
x-cache-ttl: 86400000
x-request-id: iad:2eb66538-0a16-4c56-b613-511d99507c9f
x-cache-status: BYPASS
cache-control: public, must-revalidate, max-age=0
You can read cache section to know more about that.