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

+9
View File
@@ -235,6 +235,15 @@ function updateServiceWorkerCache() {
for (const name of Object.keys(bundles)) {
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 updated = sw.replace(
/const CACHE = 'dashcaddy-shell-[^']+';/,