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