document.requestStorageAccess({ caches: true }).then(
async (handle) => {
console.log("caches access granted");
const cache = await handle.caches.open("foo");
await cache.add("/");
},
() => {
console.log("caches access denied");
},
);StorageAccessHandle: caches property / notebook
StorageAccessHandle: caches property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.