Fix: json cache 비활성화

This commit is contained in:
jhynsoo 2024-09-23 16:48:16 +09:00
parent ae933d7253
commit 1a859433e0

View File

@ -2,5 +2,11 @@ import { LabelJson } from '@/types';
import axios from 'axios';
export async function getLabelJson(jsonPath: string) {
return axios.get<LabelJson>(jsonPath).then(({ data }) => data);
return axios
.get<LabelJson>(jsonPath, {
headers: {
'Cache-Control': 'no-cache',
},
})
.then(({ data }) => data);
}