diff --git a/sw.js b/sw.js deleted file mode 100644 index 024cdc2..0000000 --- a/sw.js +++ /dev/null @@ -1,42 +0,0 @@ -var CACHE_NAME = "app_uwuzu"; -var urlsToCache = [ - "home/index.php", - "search/index.php", - "require/botbox.php", - "require/leftbox.php", - "require/rightbox.php", - "require/botbox.php", - "user/index.php", - "settings/index.php", - "rule/terms.php", - "rule/privacypolicy.php", - "rule/uwuzuabout.php", - "index.php", - "login.php", - "new.php", - "check.php", - "success.php", -]; - -self.addEventListener('install', function(event) { - event.waitUntil( - caches.open(CACHE_NAME) - .then( - function(cache){ - return cache.addAll(urlsToCache); - }) - ); -}); - -self.addEventListener('fetch', function(event) { - event.respondWith( - caches.match(event.request) - .then( - function (response) { - if (response) { - return response; - } - return fetch(event.request); - }) - ); -}); \ No newline at end of file