提交 50274e81 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/cache_script' into 'develop'

Merge of fix/cache_script to develop 修复缓存资源的正则表达式判断的bug

See merge request o2oa/o2oa!1385
......@@ -1258,6 +1258,7 @@
//if (Browser.name == "ie")
if (_cacheUrls.length){
for (var i=0; i<_cacheUrls.length; i++){
_cacheUrls[i].lastIndex = 0;
if (_cacheUrls[i].test(address)){
noCache = false;
break;
......
......@@ -291,7 +291,7 @@
// /jaxrs\/script/ig,
/jaxrs\/script\/.+\/app\/.+\/imported/ig,
/jaxrs\/script\/portal\/.+\/name\/.+\/imported/ig,
/jaxrs\/script\/[\S\s]+\/application\/[\S\s]+\/imported/,
/jaxrs\/script\/[\S\s]+\/application\/[\S\s]+\/imported/ig,
/jaxrs\/page\/.+\/portal\/.+/ig
// /jaxrs\/authentication/ig
// /jaxrs\/statement\/.*\/execute\/page\/.*\/size\/.*/ig
......@@ -307,6 +307,7 @@
//if (Browser.name == "ie")
if (_cacheUrls.length){
for (var i=0; i<_cacheUrls.length; i++){
_cacheUrls[i].lastIndex = 0;
if (_cacheUrls[i].test(address)){
noCache = false;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册