Spaces:
Running
Running
axeronis commited on
Commit ·
53cdaab
1
Parent(s): c6cb3ed
fix: Add cache-control headers to prevent stale data in chats
Browse files- frontend/lib/api.ts +3 -0
frontend/lib/api.ts
CHANGED
|
@@ -24,6 +24,9 @@ export const api = axios.create({
|
|
| 24 |
baseURL: API_BASE_URL,
|
| 25 |
headers: {
|
| 26 |
'Content-Type': 'application/json',
|
|
|
|
|
|
|
|
|
|
| 27 |
},
|
| 28 |
})
|
| 29 |
|
|
|
|
| 24 |
baseURL: API_BASE_URL,
|
| 25 |
headers: {
|
| 26 |
'Content-Type': 'application/json',
|
| 27 |
+
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
| 28 |
+
'Pragma': 'no-cache',
|
| 29 |
+
'Expires': '0',
|
| 30 |
},
|
| 31 |
})
|
| 32 |
|