From 3d55a988215d562d313b974d4c2753e43433aa92 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sun, 4 Aug 2024 16:23:53 +0900 Subject: [PATCH] fix: add cache option no-cache to prevent caching --- packages/cli/src/helpers/safe-fetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/helpers/safe-fetcher.ts b/packages/cli/src/helpers/safe-fetcher.ts index d2ca9cb..7ddfbab 100644 --- a/packages/cli/src/helpers/safe-fetcher.ts +++ b/packages/cli/src/helpers/safe-fetcher.ts @@ -4,7 +4,7 @@ export async function safeFetch( | { message: string; ok: false; response: Response } | { ok: true; response: Response } > { - const response = await fetch(url); + const response = await fetch(url, { cache: "no-cache" }); if (response.ok) { return { ok: true,