diff --git a/app/global-error.tsx b/app/global-error.tsx index 2b5bc4e..851df27 100644 --- a/app/global-error.tsx +++ b/app/global-error.tsx @@ -116,3 +116,4 @@ export default function GlobalError({ error, reset }: GlobalErrorProps) { ); } + diff --git a/services/api/client.ts b/services/api/client.ts index b6f5fa3..cc5074b 100644 --- a/services/api/client.ts +++ b/services/api/client.ts @@ -93,6 +93,7 @@ export async function apiFetch( try { const response = await fetch(`${baseUrl}${endpoint}`, { + cache: rest.cache ?? 'no-store', ...rest, headers, credentials: 'include', @@ -103,6 +104,7 @@ export async function apiFetch( if (refreshed) { headers['Authorization'] = `Bearer ${getAccessToken()}`; const retryResponse = await fetch(`${baseUrl}${endpoint}`, { + cache: rest.cache ?? 'no-store', ...rest, headers, credentials: 'include',