do not return cache headers for RD downloads meta

This commit is contained in:
TheBeastLT
2023-04-18 20:03:35 +02:00
parent 6c7b267764
commit cb3f920fb3

View File

@@ -60,7 +60,7 @@ builder.defineMetaHandler((args) => {
return getMochItemMeta(mochKey, metaId, args.extra)
.then(meta => ({
meta: meta,
cacheMaxAge: CACHE_MAX_AGE
cacheMaxAge: metaId === 'Downloads' ? 0 : CACHE_MAX_AGE
}))
.catch(error => {
return Promise.reject(`Failed retrieving catalog meta ${args.id}: ${JSON.stringify(error)}`);