IE 上,ajax cache会导致写在 setInterval 内的axios 请求不发送

167 阅读1分钟

IE 上,ajax cache会导致写在 setInterval 内的axios 请求不发送。

解决方案:axios 里加个timestamp

...
let request_params = {
    ...params,
    timestamp: Date.now(),
};

axios.get('/your_request_url', { request_params })

参考:stackoverflow.com/questions/3…