简体   繁体   English

AJAX调用会在IE6 / 7中随机超时吗?

[英]AJAX calls randomly timing out in IE6/7?

Some of my AJAX calls in IE6 and IE7 seem to randomly time out. 我在IE6和IE7中的一些AJAX调用似乎随机超时。 It doesn't happen in any of the other browsers. 在其他任何浏览器中都不会发生。 Posting code won't be of much help, because it literally happens in three or four different places where the functions and code are completely different. 发布代码不会有太大帮助,因为它实际上发生在功能和代码完全不同的三个或四个不同的地方。

Has anyone else experienced this issue before? 有没有其他人以前遇到过这个问题?

This might be a cache issue. 这可能是缓存问题。 I had a similar issue, the page content was never updating on some of the calls. 我遇到了类似的问题,页面内容在某些调用中从未更新。 This was completely random. 这是完全随机的。

In jQuery AJAX method options you can set: Cache: false; 您可以在jQuery AJAX方法选项中进行设置:Cache:false;

In my case the above solution did not resolve the problem, but might work in your case. 就我而言,上述解决方案无法解决问题,但可能适合您的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM