Определите по умолчанию.
axios.defaults.headers = {
'Cache-Control': 'no-cache',
'Pragma': 'no-cache',
'Expires': '0',
};
(async () => {
const {
data
} = await axios.get('https://catfact.ninja/fact')
console.log(data)
})()
Grieving Gharial