Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

asciicinema

self.addEventListener('activate', (event) => {
  event.waitUntil(async function() {
    const cacheNames = await caches.keys();
    await Promise.all(
      cacheNames.filter((cacheName) => {
        // Return true if you want to remove this cache,
        // but remember that caches are shared across
        // the whole origin
      }).map(cacheName => caches.delete(cacheName))
    );
  }());
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: laravel pass collection to javascript 
Javascript :: discord.js bot credits command 
Javascript :: aos library slow animation angular 
Javascript :: cadena promesas javascript 
Javascript :: unobtrusive validation on selectpicker 
Javascript :: unit test for dynamodb query is a function 
Javascript :: jsonb_set remove key 
Javascript :: break string to array javascript without delimeter 
Javascript :: what is download api javascript 
Javascript :: paamayim nekudotayim 
Javascript :: upload blob to server 
Javascript :: firebase remove not valid token 
Javascript :: guardar en una variable la peticion ajax 
Javascript :: content disposition attachment javascript fetch download "excel" 
Javascript :: banking program deposit and withdrawal using ajax call 
Javascript :: add delay for keypress event in extjs 
Javascript :: p5js unset fill 
Javascript :: how to write a program that determines the minutes since midnight, Jan 1, 1970 in javascript 
Javascript :: javascript datum addieren 
Javascript :: how to run a cloned react native project 
Javascript :: int cating javascript 
Javascript :: using javascript to validation email before next field 
Javascript :: set up background process in express app 
Javascript :: js find place value 
Javascript :: encriptar exadecimal con cryptojs 
Javascript :: how to new tab disable after hit enter in javascript 
Javascript :: how to change grid size with conditional expression in react 
Javascript :: js remove first element from string 
Javascript :: how do you make your script work on one window 
Javascript :: knex.js insert two rows 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =