InterviewSolution
Saved Bookmarks
| 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) { }); |
|