Production release February 2024 - Fix #11

Merged
konstantina.galouni merged 1 commits from develop into master 2024-02-08 18:44:56 +01:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit fbdc3710dc - Show all commits

View File

@ -85,9 +85,9 @@ let cache = () => {
}; };
function isAllowedToBeCached(scheme, target){ function isAllowedToBeCached(scheme, target){
if(environment != "development"){ if(environment != "development"){
return scheme.indexOf("https://")!=-1 && ( target.indexOf(".openaire.eu/") !=-1 || target.indexOf(".zenodo.org/api/") !=-1 || target.indexOf("lab.idiap.ch/enermaps" != -1)) return scheme.indexOf("https%3A%2F%2F")!=-1 && ( target.indexOf(".openaire.eu%2F") !=-1 || target.indexOf(".zenodo.org%2Fapi%2F") !=-1 || target.indexOf("lab.idiap.ch%2Fenermaps" != -1))
} else if(environment == "development"){ } else if(environment == "development"){
return target.indexOf(".openaire.eu/") !=-1 || target.indexOf(".di.uoa.gr") !=-1 || target.indexOf("dev-openaire.d4science.org") !=-1 || target.indexOf("lab.idiap.ch/enermaps") != -1 return target.indexOf(".openaire.eu%2F") !=-1 || target.indexOf(".di.uoa.gr") !=-1 || target.indexOf("dev-openaire.d4science.org") !=-1 || target.indexOf("lab.idiap.ch%2Fenermaps") != -1
} }
return true; return true;
} }