Ajax无法在IE错误代码12019上使用SSL [英] Ajax not working with SSL on IE error code 12019

查看:339
本文介绍了Ajax无法在IE错误代码12019上使用SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发基于Java,JSP,Ajax构建的Web应用程序,这些服务器是JBoss,前端位于Apche 2服务器中.该应用程序是通过Internet访问的.客户端主要使用IE 7、8、9浏览器.

I am working on a web application built on Java, JSP, Ajax the servers are JBoss with front in Apche 2 server. The application is accessed over the internet. clients are using mostly IE 7, 8, 9 Browsers.

该应用程序之前运行良好.最近,我们在该站点上应用了SSL证书,此后,我们开始收到来自用户的投诉,称应用Ajax的页面未提交.通常,我们在提交按钮上调用ajax并阻塞页面,直到从服务器收到响应为止.我们应用了记录器,发现ajax请求调用失败,并且ajax jqXHR错误状态为12019 .

The application was working perfectly before.Recently we applied SSL certificates over the site, after this we started getting complaints from the user that pages where Ajax is applied are not submitting. Normally we call the ajax on submit button and block the page till response is received from the server. we applied loggers and found that the ajax request calls are failed with ajax jqXHR error status as 12019.

我们观察到使用IE(主要是版本8和9)的用户会看到此错误.错误的模式也不相同.有一段时间,同一用户能够提交较早提出投诉的页面,而有一段时间则没有.我尽力在我的本地和开发环境中产生这种情况,但是没有.

We observed that this error is observed by the users where IE (mostly version 8 and 9) is used. the pattern of error is also not same. some time the same user able to submit page who complaint earlier and some time not. i tried best to produce this scenario over my local and development environment but could not.

我在Google上搜索了问题,发现12019错误代码是IE的错误.但是为什么在应用SSL之前它会起作用,
如果SSL不正确,为什么问题仅出现在ajax页面上,为什么不出现在其他地方.我不能说用户要更改浏览器.

i google the problem and found something that 12019 error code is a bug of IE. but why it worked before applying the SSL,
and if SSL is not correct why the problem is only at the ajax page why not somewhere else. I cant say users to change the browser.

这使我疯狂了一个多星期.如果其他人曾经观察并解决过这个问题,请帮助我.

This driving me crazy for more then a week. Please help me if anyone else has observed and solve this before.

推荐答案

这是由于IE尝试缓存不该缓存的内容.

This is due to IE attempting to cache something it shouldnt.

有2个选项

  1. 不添加缓存头 "If-Modified-Since",格林尼治标准时间1970年1月1日星期四" 缓存控件",无缓存"

  1. Add no cache headers "If-Modified-Since", "Thu, 1 Jan 1970 00:00:00 GMT" "Cache-Control", "no-cache"

附加缓存清除参数 "x-1& y = 2 ...& ieispoo =" + Date.now()

Append a cache busting parameter "x-1&y=2...&ieispoo="+Date.now()

我意识到这是一个古老的问题,但是其他人可能会从答案中受益.

I realize this is an old question, but someone else might benefit from the answer.

这篇关于Ajax无法在IE错误代码12019上使用SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆