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">
<header>
<div>
<a href="/">
<a href="">
<h1 class="logo">Postwoman</h1>
</a>
<h3>API request builder</h3>

9
sw.js
View File

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