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:
parent
a8c83cd8f4
commit
decf5c8cd3
1 changed files with 2 additions and 1 deletions
|
@ -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)) })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue