disable axios cache

This commit is contained in:
Jan Prochazka
2020-11-22 18:00:01 +01:00
parent 994195667d
commit d3cfc44fd9

View File

@@ -1,6 +1,14 @@
import axios from 'axios';
import resolveApi from './resolveApi';
export default axios.create({
const axiosInstance = axios.create({
baseURL: resolveApi(),
});
axiosInstance.defaults.headers = {
'Cache-Control': 'no-cache',
Pragma: 'no-cache',
Expires: '0',
};
export default axiosInstance;