启用chrome数据压缩会导致Ajax错误。
当我启用chrome数据压缩时,我的ajax函数出现错误。这一点很重要,因为移动chrome默认安装时启用了数据压缩。
Ajax错误函数参数:
status=0 ,responseText="" readyState=0Chrome控制台:
GET http://example.com/GetData.ashx?_=1413205947410 net::ERR_SPDY_PROTOCOL_ERROR
i.support.ajax.i.ajaxTransport.send : jquery-1.7.2.js:8241
i.extend.ajax : jquery-1.7.2.js:8241我的ajax函数:
load = function (proxyPageName) {
$.ajax({
type: "GET", //I have try POST
url: document.location.protocol + "//" + document.location.host + proxyPageName + ".ashx" ,
dataType: "text",
success: function (msg) {
//when disabled chrome data compression
},
error: function (xhr,options,error) {
//when enable chrome data compression
}
});
}服务器上未记录错误。
发布于 2018-02-28 10:55:46
我最近在3个独立系统的服务器升级后看到了这个错误,这些系统都有相同的行为。
我在Chrome中的所有用户都看到了它,但只是间歇性的。
通过让所有用户使用Chrome的“空缓存和硬重新加载”刷新功能,我能够为所有用户解决这个问题。(用于Chrome工具的F12,右键单击刷新按钮)
我怀疑这与所使用的SSL证书缓存有关。
发布于 2015-08-18 21:28:58
您运行的是Windows 10吗?我一个月前遇到过这个问题,它真的很棘手。首先,我试着用disabling SPDY修复Chrome,但它只对Chrome有帮助,但在其他试图访问我的IIS的机器上也是一样的。
真正的问题在于Windows10本身。试试this trick with editing registry。我希望它能帮上忙。
https://stackoverflow.com/questions/26341559
复制相似问题