ux: SamiPanel icon zoomed to match the Simpsons-male icon proportions (subject scale + circle bleed like the reference emblem); asset-cache tag fix from the previous commit ensures browsers pick it up on next reload
This commit is contained in:
3 files changed
+10
-1
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 36 KiB |
@@ -235,6 +235,15 @@ function updateServiceWorkerCache() {
|
|||||||
for (const name of Object.keys(bundles)) {
|
for (const name of Object.keys(bundles)) {
|
||||||
hash.update(fs.readFileSync(path.join(DIST, name)));
|
hash.update(fs.readFileSync(path.join(DIST, name)));
|
||||||
}
|
}
|
||||||
|
// DC-171-UX: assets participate in the cache tag too — an asset-only
|
||||||
|
// change (logo fix, icon swap) must bust the SW cache as well, otherwise
|
||||||
|
// runtime-cached images stay stale until the cache dies of old age.
|
||||||
|
const ASSET_EXTENSIONS = /\.(png|svg|ico|css|webmanifest)$/;
|
||||||
|
const assetDir = path.join(__dirname, 'assets');
|
||||||
|
for (const f of fs.readdirSync(assetDir).filter((f) => ASSET_EXTENSIONS.test(f)).sort()) {
|
||||||
|
hash.update(f);
|
||||||
|
hash.update(fs.readFileSync(path.join(assetDir, f)));
|
||||||
|
}
|
||||||
const tag = hash.digest('hex').slice(0, 10);
|
const tag = hash.digest('hex').slice(0, 10);
|
||||||
const updated = sw.replace(
|
const updated = sw.replace(
|
||||||
/const CACHE = 'dashcaddy-shell-[^']+';/,
|
/const CACHE = 'dashcaddy-shell-[^']+';/,
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
const CACHE = 'dashcaddy-shell-7915de22e8';
|
const CACHE = 'dashcaddy-shell-0fa5717320';
|
||||||
const PRECACHE = [
|
const PRECACHE = [
|
||||||
'/',
|
'/',
|
||||||
'/index.html',
|
'/index.html',
|
||||||
|
|||||||
Reference in new issue
Block a user