1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-01-31 03:26:13 +00:00

set cache-control with max-age=60 for /metadata/all (#68)

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-01-15 13:38:22 +01:00 committed by Andy Tudhope
parent ee5fda8dc5
commit 6f5bc6e275

View File

@ -130,6 +130,8 @@ class DAppsMetadataController {
dappsFormatedMetadata[metadataHash] = dappsMetadata[i]
}
/* don't cache for longer than 60 seconds to show new dapps quicker */
res.set('Cache-Control', 'public, max-age=60')
res.status(200).json(dappsFormatedMetadata)
}