Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/updates/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export async function listUpdates(): Promise<Update[]> {
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.');
}
Expand Down