Compare commits

..

No commits in common. "132e49b589c1f41aa92cbd42300dc1c79c08bd18" and "05623222c89108ccefa3db3b22261d1dd5875ef5" have entirely different histories.

2 changed files with 1 additions and 8 deletions

View File

@ -1,7 +0,0 @@
#!/usr/bin/env bash
set -eo pipefail
VAR="const currentVersion = '$RANDOM';"
sed "1s/.*/$VAR/" sw.js > sw.js.new
mv sw.js.new sw.js
git add sw.js

2
sw.js
View File

@ -1,4 +1,4 @@
const currentVersion = '12521';
const currentVersion = 'v1';
const addResourcesToCache = async (resources) => {
const cache = await caches.open(currentVersion);