← Back to Page domain

Page.addCompilationCache

Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.

Domain: Page experimental

Parameters

NameTypeDescription
urlstring
datastringBase64-encoded data (Encoded as a base64 string when passed over JSON)

Example Request

{
  "id": 1,
  "method": "Page.addCompilationCache",
  "params": {
    "url": "https://example.com",
    "data": "data-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Page.addCompilationCache', {"url": "https://example.com", "data": "data-value"});
console.log(result);