|
|
|
@ -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") {
|
|
|
|
|