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:
parent
ee5fda8dc5
commit
6f5bc6e275
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user