From 61ab8a077677bb7ce7ae5c3b3d44dc7951e1f885 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 5 Feb 2024 16:25:36 +0800 Subject: [PATCH] fix: use timestamp to get latest data --- src/libs/OIerDb.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/OIerDb.ts b/src/libs/OIerDb.ts index 2fe5a9b..daf76ea 100644 --- a/src/libs/OIerDb.ts +++ b/src/libs/OIerDb.ts @@ -378,7 +378,7 @@ export const initDb = async (setProgressPercent?: (p: number) => void) => { sha512: staticSha512, size: staticSize, }: { sha512: string; size: number } = await promiseAny( - infoUrls.map((url) => fetch(`${url}/static.info.json`)) + infoUrls.map((url) => fetch(`${url}/static.info.json?_=${+new Date()}`)) ).then((res) => res.json()); setProgressPercent(4); @@ -387,7 +387,7 @@ export const initDb = async (setProgressPercent?: (p: number) => void) => { sha512: resultSha512, size: resultSize, }: { sha512: string; size: number } = await promiseAny( - infoUrls.map((url) => fetch(`${url}/result.info.json`)) + infoUrls.map((url) => fetch(`${url}/result.info.json?_=${+new Date()}`)) ).then((res) => res.json()); setProgressPercent(8);