✨ PWA
This commit is contained in:
@@ -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
9
sw.js
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user