Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 javascript 或其库有什么方法可以清除客户端上缓存的 XHR 数据?
我想在几个本地主机上测试我的应用程序,想在客户端而不是服务器上清除 XML HTTP 请求,有什么办法吗?
简单的解决方案简单在最后添加了一些额外的参数,例如:原始
http://yoursite.com/index.html
并避免缓存
http://yoursite.com/index.html?rnd=123456