bgFetch.match("/ep-5.mp3").then(async (record) => {
if (!record) {
console.log("No record found");
return;
}
const response = await record.responseReady;
console.log(`Here's the response`, response);
});BackgroundFetchRecord: responseReady property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.