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:
Hermes committed 2026-11-20 02:46:03 -08:00
1 parent 266d8b1861
commit f98a09e9d6
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

+9
View File
@@ -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
View File
@@ -1,4 +1,4 @@
const CACHE = 'dashcaddy-shell-7915de22e8'; const CACHE = 'dashcaddy-shell-0fa5717320';
const PRECACHE = [ const PRECACHE = [
'/', '/',
'/index.html', '/index.html',