commit 68a0b3026b93890513771e665435c3faed39e5dc
parent a50b98155a1f496c7b51176bcf19accc7e98afce
Author: Hunter
Date:   Tue, 10 Mar 2026 00:09:01 -0400

update caching strategy

Diffstat:
Msw.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sw.js b/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = 'matryoshka-v1.4'; +const CACHE_NAME = 'matryoshka-v1.5'; const ASSETS = [ './', 'index.html', @@ -43,7 +43,7 @@ self.addEventListener('activate', (event) => { // Serve from cache, fall back to network, and update cache self.addEventListener('fetch', (event) => { event.respondWith( - caches.match(event.request).then((cached) => { + caches.open(CACHE_NAME).then((cache) => cache.match(event.request)).then((cached) => { const fetchPromise = fetch(event.request).then((response) => { // Only cache same-origin, successful GET requests if (response.ok && event.request.method === 'GET') {