From 72779d4542f381e78dc6f1729bc8070172f68ba8 Mon Sep 17 00:00:00 2001 From: Paolo Veronelli Date: Sat, 4 Apr 2026 12:45:29 +0100 Subject: [PATCH 1/2] chore: src/FFI/Cache.js:60-66 --- src/FFI/Cache.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FFI/Cache.js b/src/FFI/Cache.js index 01328ef..4f8bf79 100644 --- a/src/FFI/Cache.js +++ b/src/FFI/Cache.js @@ -60,6 +60,8 @@ export function putCachedResponseImpl(url) { .then((db) => { const tx = db.transaction("responses", "readwrite"); const store = tx.objectStore("responses"); + const key = url.startsWith("graphql:") ? "graphql:..." : url; + console.log("[cache] PUT", key); store.put({ url: url, etag: etag, From 2255cdd200d8a5e679c92277b9a4fe84a5ef2f9c Mon Sep 17 00:00:00 2001 From: Paolo Veronelli Date: Sat, 4 Apr 2026 12:45:30 +0100 Subject: [PATCH 2/2] chore: src/FFI/Cache.js:37-45 --- src/FFI/Cache.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/FFI/Cache.js b/src/FFI/Cache.js index 4f8bf79..03064e5 100644 --- a/src/FFI/Cache.js +++ b/src/FFI/Cache.js @@ -37,8 +37,11 @@ export function getCachedResponseImpl(url) { const req = store.get(url); req.onsuccess = () => { if (req.result) { + const key = url.startsWith("graphql:") ? "graphql:..." : url; + console.log("[cache] HIT", key); onFound(req.result)(); } else { + console.log("[cache] MISS", url.startsWith("graphql:") ? "graphql:..." : url); onMissing(); } };