tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

storage-cache-overflow.html (503B)


      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 overflow</h1>
      9 <script>
     10  "use strict";
     11  async function setup() { // eslint-disable-line no-unused-vars
     12    const cache = await caches.open("lorem");
     13    for (let i = 0; i < 100; i++) {
     14      await cache.add(`storage-blank.html?${i}`);
     15    }
     16  }
     17  function clear() { // eslint-disable-line no-unused-vars
     18    return caches.delete("lorem");
     19  }
     20 </script>
     21 
     22 </body>
     23 </html>