HTML5缓存Spring项目Ajax调用问题
HTML5 Cache Spring Project Ajax calls issue
我有一个springmvc项目,
我想要呈现的页面的脱机功能所以我有一个清单文件,其中包括jsps,css,js,图像等
我面临的问题是
一旦我打开网页,缓存被下载到浏览器,并且我仍然在线,ajax调用就会停止工作(离线时我不需要ajax调用来工作(
这是控制台中显示的错误
GET http://localhost:8080/test/rest/store/1 net::ERR_FAILED
m.ajaxTransport.send @ jquery.min.js:4
m.extend.ajax @ jquery.min.js:4
storeDetails @ index.jsp:143
onclick @ index.jsp:191
jquery.min.js:4
net::ERR_FAILED(anonymous function) @ jquery.min.js:4m.access @ jquery.min.js:3m.each.m.fn.(anonymous function) @ jquery.min.js:4(anonymous function) @ bootstrap.min.js:6m.fn.extend.on.d @ jquery.min.js:3a.support.transition.a.event.special.bsTransitionEnd.handle @ bootstrap.min.js:6m.event.dispatch @ jquery.min.js:3m.event.add.r.handle @ jquery.min.js:3m.event.trigger @ jquery.min.js:3(anonymous function) @ jquery.min.js:3m.extend.each @ jquery.min.js:2m.fn.m.each @ jquery.min.js:2m.fn.extend.trigger @ jquery.min.js:3a.fn.emulateTransitionEnd.e @ bootstrap.min.js:6
添加
NETWORK
*
对我的缓存文件的ajax调用再次工作!
发送ajax请求时的硬代码,如:
if(isLocalENV){
jQuery.ajax({
url:url,
data:{tms:+new Date(),param1:value1},
...
})};
相关文章:
- d3-js快速事件调用问题
- Node.js-异步方法调用问题
- JavaScript 中的函数调用问题
- AngularJS:http 链调用问题和 NodeJS:在多个 http 调用中使用变量的问题
- IE8 XHTML 在 jQuery ajax 调用问题中返回
- 通过JS Ajax调用问题填充数据
- JSONP函数调用问题
- MVC Ajax调用问题
- IE8切片调用问题-Array.prototype.slice-'这'不是Javascript对象
- JS和SWF调用问题
- OO JavaScript方法调用问题
- 异步调用问题
- Javascript函数调用问题
- 这个fetch调用问题
- MVC 4 -级联下拉列表- Ajax JavaScript调用问题
- AngularJS路由导致服务器调用问题
- 多个imagesLoaded函数css调用问题
- ajax同步调用问题
- HTML5缓存Spring项目Ajax调用问题
- Javascript onclick函数调用问题:won't传递字符串