1.

How To Set Cache False And Content-type In Vue Axios?

Answer»

VAR CONFIG = { HEADERS: {'Content-Type': 'application/json','Cache-Control' : 'no-cache'}};

axios.get ('/post',config)

.then (function (response) { })

.CATCH (function (ERROR) { });

var config = { headers: {'Content-Type': 'application/json','Cache-Control' : 'no-cache'}};

axios.get ('/post',config)

.then (function (response) { })

.catch (function (error) { });



Discussion

No Comment Found