Open
Description
我在APP中写了一个webview,在其中加载网页;网页中有一个ajax请求,用于请求网页中需要显示的数据;这个数据我不想用户过于频繁的获取,一方面也不想缓存过久,所以就用了ajax-cache来做;但是看起来,每次请求都发出去了
$.ajax({
ajaxCache: {
cacheValidate: function (res, options) {
return true;
},
storageType: 'localStorage',
timeout: 30,
forceRefresh: false
},
type:"get",
url: "http:xxxxxx.xxxx.com",
async: true,
dataType:"json",
success:function(data) {
}
});
Metadata
Metadata
Assignees
Labels
No labels