From 091affca67848d337ca39f16290bca925575a883 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 4 Dec 2026 15:07:54 +0000 Subject: [PATCH] fix(updates): fetch the changelog past the device's HTTP cache so a just-pushed entry opens Expo's fetch ignores the cache option, so the feed's one-hour max-age let iOS answer every refetch from the copy it already had. A push for a new entry then opened Update not found and the list stayed without it. A unique URL per request reaches the website. --- src/updates/api.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/updates/api.ts b/src/updates/api.ts index fd731e3..51fbb61 100644 --- a/src/updates/api.ts +++ b/src/updates/api.ts @@ -22,8 +22,9 @@ export async function listUpdates(): Promise { if (demo) { return mockUpdates; } - // The feed is served with a one-hour max-age, so the URL cache would hide an entry a push just announced. - const response = await fetch(`${changelog}.json`, { cache: 'no-cache' }); + // The feed is served with a one-hour max-age, which iOS and Android honour, so the copy they keep would hide an + // entry a push just announced. Expo's fetch ignores `cache`, so a URL of its own is what skips that copy. + const response = await fetch(`${changelog}.json?_=${Date.now()}`); if (!response.ok) { throw new Error('Couldn’t load the changelog.'); }