diff --git a/src/lib/api.ts b/src/lib/api.ts index 0921860..9128f1e 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -113,6 +113,8 @@ async function request( ): Promise { const headers: Record = { 'Content-Type': 'application/json', + 'Cache-Control': 'no-cache, no-store, must-revalidate', + 'Pragma': 'no-cache', ...(options.headers as Record), }; @@ -127,6 +129,7 @@ async function request( const response = await fetch(`${config.api.baseUrl}${endpoint}`, { ...options, headers, + cache: 'no-store', }); const json: ApiResponse = await response.json();