few more resources to service worker

This commit is contained in:
Felix Schulze 2019-11-04 12:56:38 +01:00
parent 4dd50c7744
commit 1ecbdd19a1

View File

@ -5,21 +5,30 @@ self.addEventListener('install', function(e) {
e.waitUntil( e.waitUntil(
caches.open('meritkollen').then(function(cache) { caches.open('meritkollen').then(function(cache) {
return cache.addAll([ return cache.addAll([
'/', '/',
'/index.html', '/index.html',
'/Ekonomi.php', '/Ekonomi',
'/Estet.php', '/Estet',
'/Natur.php', '/Natur',
'/Samhäll.php', '/Samhäll',
'/Teknik.php', '/Teknik',
'/assets/css/main.min.css', '/Kontakt',
'/assets/img/background.jpg', '/assets/css/main.min.css',
'/assets/js/calcscript.js', '/assets/css/main.min.css?v=201',
'/assets/js/changeall.js', '/assets/img/tips.jpg ',
'/assets/js/loader.js', '/assets/img/background.jpg ',
'/assets/js/loader.min.js', '/assets/img/favicon/manifest.json',
'/assets/js/softscrollscript.js', '/assets/img/favicon/android-chrome-192x192.png',
'/assets/js/sparabetyg.js', '/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'
]); ]);
}) })
); );