From eb24b75617f20c49d66466c829d64fb35b006a17 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Thu, 12 Dec 2024 13:38:40 +0100 Subject: [PATCH] add cache mode no stale --- astro/src/sanity/fetch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/astro/src/sanity/fetch.ts b/astro/src/sanity/fetch.ts index 02b778e..1277ab6 100644 --- a/astro/src/sanity/fetch.ts +++ b/astro/src/sanity/fetch.ts @@ -12,6 +12,7 @@ export async function sanityFetch({ }) { const {result, syncTags} = await client.fetch(query, params, { lastLiveEventId, + cacheMode: 'noStale', filterResponse: false, })