Answers for "define default no cache axios headers"

0

define default no cache axios headers

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)
})()
Posted by: Guest on December-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language