Mercurial
diff mrjunejune/src/public/sw.js @ 241:9c2eec61a152
[assets] Generate site images as WebP with Bazel
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 03 Aug 2026 11:26:30 -0700 |
| parents | 3b47e82ac57e |
| children | 543df0fe7168 |
line wrap: on
line diff
--- a/mrjunejune/src/public/sw.js Mon Aug 03 10:48:59 2026 -0700 +++ b/mrjunejune/src/public/sw.js Mon Aug 03 11:26:30 2026 -0700 @@ -1,5 +1,5 @@ // Service Worker for MrJuneJune PWA -const CACHE_VERSION = 'v1'; +const CACHE_VERSION = 'v2-webp'; const CACHE_NAME = `mrjunejune-${CACHE_VERSION}`; // Files to cache immediately on install @@ -88,7 +88,6 @@ url.pathname.endsWith('.css') || url.pathname.endsWith('.js') || url.pathname.endsWith('.svg') || - url.pathname.endsWith('.png') || url.pathname.endsWith('.jpg') || url.pathname.endsWith('.webp') || url.pathname.endsWith('.woff') ||