mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
+cache control
This commit is contained in:
@@ -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