cache-control for files (#528)

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-12-06 10:16:23 +01:00 committed by GitHub
parent e5f414ac6e
commit 7b70244f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,6 +114,7 @@ export function start (config: { transactorEndpoint: string, elasticUrl: string,
return console.log(err)
}
res.status(200)
res.set('Cache-Control', 'max-age=604800')
const contentType = stat.metaData['content-type']
if (contentType !== undefined) {