<pre>self.addEventListener('install', e => { e.waitUntil( caches.open("spotify_clone").then(cache => { return cache.addAll(["./index.html", "./style.css", "./script.js", "./", "./songs/", "./5.jpg", "./songs/0.mp3", "./songs/1.mp3", "./songs/2.mp3", "./songs/3.mp3", "./songs/4.mp3", "./songs/5.mp3", "./BG.jpg", "./giphy.gif", "./manifest.json","./fontawesome <= this is the folder i want cache"]) }) ) }) self.addEventListener('fetch', e => { e.respondWith( caches.match(e.request).then(response => { return response || fetch(e.request) }) ) })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)