From 1abe51b348de036ad5c25f2412a78bdae1a55f17 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 6 Mar 2026 02:30:56 +0000 Subject: [PATCH 1/2] fix: Add cache headers to Ponder GraphQL proxy in Caddy (#447) --- containers/Caddyfile | 1 + 1 file changed, 1 insertion(+) diff --git a/containers/Caddyfile b/containers/Caddyfile index 93fb5e4..e6b88dc 100644 --- a/containers/Caddyfile +++ b/containers/Caddyfile @@ -3,6 +3,7 @@ reverse_proxy webapp:5173 } route /api/graphql* { + header Cache-Control "public, max-age=5" uri strip_prefix /api reverse_proxy ponder:42069 } From 8b39bf3000143e0c602e2099aa3a79f7e9328414 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 6 Mar 2026 03:07:24 +0000 Subject: [PATCH 2/2] fix: Add cache headers to Ponder GraphQL proxy in Caddy (#447) --- landing/src/components/LiveStats.vue | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/landing/src/components/LiveStats.vue b/landing/src/components/LiveStats.vue index 2674334..2accd93 100644 --- a/landing/src/components/LiveStats.vue +++ b/landing/src/components/LiveStats.vue @@ -364,15 +364,7 @@ async function fetchStats() { try { const controller = new AbortController(); const timeout = setTimeout(() => controller.abort(), 10000); - const endpoint = `${window.location.origin}/api/graphql`; - const response = await fetch(endpoint, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - signal: controller.signal, - body: JSON.stringify({ - query: ` + const query = ` query ProtocolStats { statss(where: { id: "0x01" }) { items { @@ -390,8 +382,11 @@ async function fetchStats() { } } } - `, - }), + `; + const endpoint = `${window.location.origin}/api/graphql?query=${encodeURIComponent(query)}`; + const response = await fetch(endpoint, { + method: 'GET', + signal: controller.signal, }); clearTimeout(timeout);