aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/public/pwa-worker.js
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-19 12:40:48 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-19 12:40:48 +0100
commitd434204860fc0409ad6343e815d0057b97ce3573 (patch)
tree37d349fb3a39e727150134a32e745c64a7312571 /src/frontend/public/pwa-worker.js
parentd6a28db658487bab63067499c3c7dbe6165e18c1 (diff)
Some UI tweaks
Diffstat (limited to 'src/frontend/public/pwa-worker.js')
-rw-r--r--src/frontend/public/pwa-worker.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/frontend/public/pwa-worker.js b/src/frontend/public/pwa-worker.js
index eb69b84..649a161 100644
--- a/src/frontend/public/pwa-worker.js
+++ b/src/frontend/public/pwa-worker.js
@@ -1,4 +1,4 @@
-const CACHE_VERSION = "20251107a";
+const CACHE_VERSION = "20251118a";
const STATIC_CACHE_NAME = `static-cache-${CACHE_VERSION}`;
const STATIC_CACHE_ASSETS = ["/favicon.ico", "/logo-256.png", "/logo-512.jpg"];
@@ -9,7 +9,6 @@ const ESTIMATES_MIN_AGE = 15 * 1000;
const ESTIMATES_MAX_AGE = 30 * 1000;
self.addEventListener("install", (event) => {
- console.log("SW: Install event in progress. Cache version: ", CACHE_VERSION);
event.waitUntil(
caches
.open(STATIC_CACHE_NAME)
@@ -67,17 +66,14 @@ async function handleStaticRequest(request) {
const cache = await caches.open(STATIC_CACHE_NAME);
const cachedResponse = await cache.match(request);
if (cachedResponse) {
- console.log("SW handleStaticRequest: HIT for ", request.url);
return cachedResponse;
}
try {
const netResponse = await fetch(request);
if (netResponse.ok) cache.put(request, netResponse.clone());
- console.log("SW handleStaticRequest: MISS for ", request.url);
return netResponse;
} catch (err) {
- console.error("SW handleStaticRequest: FAIL for ", request.url, err);
return null;
}
}