mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
cache-control for files (#528)
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
e5f414ac6e
commit
7b70244f63
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user