[Trunk | Cache]: cache.js: In longCachingRequests add "/api/communities/" (zenodo communities request) and "/openaire/contexts/" (communities with status info).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59649 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
6055cf9cab
commit
0bf05409cc
|
@ -9,7 +9,10 @@ const URL = require('url');
|
|||
const expireShort = 2 * 60 * 1000; //2mins
|
||||
const expireLong = 24 * 60 * 60 * 1000; //24 hours
|
||||
const cacheMaxSize =500;
|
||||
const longCachingRequests = ["/communityFull", "/full", "/pagehelpcontent","/provision/mvc/vocabularies/","/pages?page_route=", "/allmetrics", "/countryusagestats/", "/openaire/info"];
|
||||
const longCachingRequests = ["/communityFull", "/full", "/pagehelpcontent",
|
||||
"/provision/mvc/vocabularies/","/pages?page_route=",
|
||||
"/allmetrics", "/countryusagestats/", "/openaire/info",
|
||||
"/api/communities/", "/openaire/contexts/"];
|
||||
let cors = require('cors');
|
||||
app.use(cors());
|
||||
|
||||
|
|
Loading…
Reference in New Issue