Commit 61edd740 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

catalinker: disable cache

parent f7a0b081
...@@ -52,11 +52,8 @@ module.exports = (app) => { ...@@ -52,11 +52,8 @@ module.exports = (app) => {
})) }))
function cacheableRequestsFilter (req, res) { function cacheableRequestsFilter (req, res) {
return (req.method === 'GET' || req.method === 'HEAD') && // Disable caching, as resources may be updated from another application (euler),
!/^\/search\/.*$/.test(req.url) && // with no means of invalidating Catalinker's cache.
!/^.*\/relations$/.test(req.url) && return false
!/^.*\/references$/.test(req.url) &&
!/^.*\/inverseRelationsBy\/.*$/.test(req.url) &&
!(URI.parseQuery(URI.parse(req.url).query).format === 'TURTLE')
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment