This commit is contained in:
gpt-engineer-app[bot]
2026-01-12 01:24:59 +00:00
parent fa429bd960
commit 188b5b377a
+3
View File
@@ -113,6 +113,8 @@ async function request<T>(
): Promise<T> {
const headers: Record<string, string> = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Pragma': 'no-cache',
...(options.headers as Record<string, string>),
};
@@ -127,6 +129,7 @@ async function request<T>(
const response = await fetch(`${config.api.baseUrl}${endpoint}`, {
...options,
headers,
cache: 'no-store',
});
const json: ApiResponse<T> = await response.json();