Skip to content

Commit

Permalink
try to fix update loop
Browse files Browse the repository at this point in the history
  • Loading branch information
perryflynn committed Apr 3, 2024
1 parent 7482486 commit 5638bb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/service-worker.js
Expand Up @@ -5,9 +5,10 @@

const cacheKey = 'site-cache-v1';
const basePath = '{{site.url}}{{"/" | relative_url}}';
const commit = '{{site.git.commitlong}}';
const commit = "{{site.git.commitlong}}";
const version = "{{site.git.commitlong}}_{{site.time | date: '%Y-%m-%d_%k-%M-%S'}}";

console.log('Service worker (re)started. Welcome to a service worker powered website (' + commit + ')');
console.log('Service worker (re)started. Welcome to a service worker powered website (' + version + ')');

// list of ressources to cache
const forceCacheList = [
Expand Down
2 changes: 1 addition & 1 deletion src/site.webmanifest
Expand Up @@ -35,4 +35,4 @@
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
}

0 comments on commit 5638bb9

Please sign in to comment.