SHARE
TWEET

Untitled

a guest Jun 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var Name_Cache='cache v 1.0';
  2. if (this.caches) {
  3.     caches.open(Name_Cache)
  4.  
  5. }
  6.  
  7. self.addEventListener('fetch', event => {
  8.  
  9.     if (event.request.url.includes('animate.css')) {
  10.         event.repondWith(null);
  11.     }
  12.     else {
  13.         event.repondWith(fetch(event.request));
  14.        console.log('Los registros fueron llamados correctamente');
  15.     }
  16. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top