From 1ecbdd19a1c9371f931293e0f91a1e6a9ea3dbf2 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Mon, 4 Nov 2019 12:56:38 +0100 Subject: [PATCH] few more resources to service worker --- html/sw.js | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/html/sw.js b/html/sw.js index 2af1f4f..0b32b68 100644 --- a/html/sw.js +++ b/html/sw.js @@ -5,21 +5,30 @@ self.addEventListener('install', function(e) { e.waitUntil( caches.open('meritkollen').then(function(cache) { return cache.addAll([ - '/', - '/index.html', - '/Ekonomi.php', - '/Estet.php', - '/Natur.php', - '/Samhäll.php', - '/Teknik.php', - '/assets/css/main.min.css', - '/assets/img/background.jpg', - '/assets/js/calcscript.js', - '/assets/js/changeall.js', - '/assets/js/loader.js', - '/assets/js/loader.min.js', - '/assets/js/softscrollscript.js', - '/assets/js/sparabetyg.js', + '/', + '/index.html', + '/Ekonomi', + '/Estet', + '/Natur', + '/Samhäll', + '/Teknik', + '/Kontakt', + '/assets/css/main.min.css', + '/assets/css/main.min.css?v=201', + '/assets/img/tips.jpg ', + '/assets/img/background.jpg ', + '/assets/img/favicon/manifest.json', + '/assets/img/favicon/android-chrome-192x192.png', + '/assets/img/favicon/favicon-32x32.png', + '/assets/img/favicon/favicon-16x16.png', + '/assets/img/favicon/favicon.ico', + 'https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/fonts/roboto/Roboto-Regular.woff2', + 'https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/fonts/roboto/Roboto-Regular.woff', + 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css', + 'https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2', + 'https://fonts.googleapis.com/icon?family=Material+Icons', + 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700', + 'https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css' ]); }) );