Extend cache length

main
Ashelyn Dawn 3 years ago
parent c5efb315e0
commit 2d43943b9b

@ -12,7 +12,8 @@ router.get('/:uuid/:size', async (req, res) => {
const image = await db.item.getImage(req.params.uuid, req.params.size)
const cacheSeconds = 60 * 60 * 24;
// Cache a month
const cacheSeconds = 60 * 60 * 24 * 30;
res.set('Cache-Control', cacheSeconds);
if(extension === "webp") {

Loading…
Cancel
Save