mirror of
https://github.com/skidoodle/albert.lol.git
synced 2026-04-28 11:17:41 +02:00
+cache control
This commit is contained in:
+2
-1
@@ -39,5 +39,6 @@ export default async function(req: NextApiRequest, res: NextApiResponse) {
|
||||
startAfter = data.Contents!.slice(-1)[0].Key;
|
||||
}
|
||||
}
|
||||
res.setHeader('Cache-Control', 'public, s-maxage=10, stale-while-revalidate=59');
|
||||
res.json({ object: objects, size: Number(size.toFixed(2)) })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user