feat: add Cache-Control header to API requests
This commit is contained in:
@@ -6,7 +6,8 @@ export let API = axios.create({
|
|||||||
? import.meta.env.VITE_REACT_APP_SERVER_URL
|
? import.meta.env.VITE_REACT_APP_SERVER_URL
|
||||||
: '',
|
: '',
|
||||||
headers: {
|
headers: {
|
||||||
'New-API-User': getUserIdFromLocalStorage()
|
'New-API-User': getUserIdFromLocalStorage(),
|
||||||
|
'Cache-Control': 'no-store'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -16,7 +17,8 @@ export function updateAPI() {
|
|||||||
? import.meta.env.VITE_REACT_APP_SERVER_URL
|
? import.meta.env.VITE_REACT_APP_SERVER_URL
|
||||||
: '',
|
: '',
|
||||||
headers: {
|
headers: {
|
||||||
'New-API-User': getUserIdFromLocalStorage()
|
'New-API-User': getUserIdFromLocalStorage(),
|
||||||
|
'Cache-Control': 'no-store'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user