storage-cache-basic-iframe.html (450B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Storage inspector test for Cache</title> 6 </head> 7 <body> 8 <h1>Cache (iframe)</h1> 9 <script> 10 "use strict"; 11 async function setup() { // eslint-disable-line no-unused-vars 12 const cache = await caches.open("foo"); 13 await cache.add("storage-blank.html"); 14 } 15 function clear() { // eslint-disable-line no-unused-vars 16 return caches.delete("foo"); 17 } 18 </script> 19 20 </body> 21 </html>