This commit is contained in:
liyasthomas
2019-08-22 10:10:40 +05:30
parent 1619c94062
commit 5b90289dd4
2 changed files with 124 additions and 125 deletions

View File

@@ -69,7 +69,7 @@
<main id="app"> <main id="app">
<header> <header>
<div> <div>
<a href="/"> <a href="">
<h1 class="logo">Postwoman</h1> <h1 class="logo">Postwoman</h1>
</a> </a>
<h3>API request builder</h3> <h3>API request builder</h3>

9
sw.js
View File

@@ -35,10 +35,10 @@ workbox.routing.registerRoute(
}) })
); );
workbox.precaching.precacheAndRoute([ workbox.precaching.precacheAndRoute([
'/style.css', '/postwoman/style.css',
'/script.js', '/postwoman/script.js',
{ {
url: '/index.html', url: '/postwoman/index.html',
revision: '383676' revision: '383676'
}, },
]); ]);
@@ -49,8 +49,7 @@ var CURRENT_CACHES = {
self.addEventListener('install', function (event) { self.addEventListener('install', function (event) {
var now = Date.now(); var now = Date.now();
var urlsToPrefetch = [ var urlsToPrefetch = [
'index.html', '/postwoman/index.html',
'manage.html'
]; ];
// All of these logging statements should be visible via the "Inspect" interface // All of these logging statements should be visible via the "Inspect" interface
// for the relevant SW accessed via chrome://serviceworker-internals // for the relevant SW accessed via chrome://serviceworker-internals