Cache favicon with ServiceWorker

This commit is contained in:
RobinLinus 2019-03-12 23:38:32 +01:00
parent c68a7ad987
commit 819697d697
2 changed files with 5 additions and 4 deletions

View file

@ -20,8 +20,8 @@
<meta name="twitter:description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup."> <meta name="twitter:description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup.">
<meta name="og:description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup."> <meta name="og:description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup.">
<!-- Icons --> <!-- Icons -->
<link rel="icon" sizes="96x96" href="images/favicon-96x96.png?"> <link rel="icon" sizes="96x96" href="images/favicon-96x96.png">
<link rel="shortcut icon" href="images/favicon-96x96.png?"> <link rel="shortcut icon" href="images/favicon-96x96.png">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<meta name="msapplication-TileImage" content="images/mstile-150x150.png"> <meta name="msapplication-TileImage" content="images/mstile-150x150.png">
<link rel="fluid-icon" type="image/png" href="images/android-chrome-192x192.png"> <link rel="fluid-icon" type="image/png" href="images/android-chrome-192x192.png">

View file

@ -1,10 +1,11 @@
var CACHE_NAME = 'snapdrop-cache-v1.0'; var CACHE_NAME = 'snapdrop-cache-v1.01';
var urlsToCache = [ var urlsToCache = [
'/', '/',
'/styles.css', '/styles.css',
'/scripts/network.js', '/scripts/network.js',
'/scripts/ui.js', '/scripts/ui.js',
'/sounds/blop.mp3' '/sounds/blop.mp3',
'/images/favicon-96x96.png'
]; ];
self.addEventListener('install', function(event) { self.addEventListener('install', function(event) {