mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-05-21 15:16:47 +02:00
cache headers for sponsors
This commit is contained in:
@@ -101,6 +101,7 @@ const start = async () => {
|
||||
},
|
||||
}, async (request, reply) => {
|
||||
const { username } = request.query as { username?: string };
|
||||
reply.header('Cache-Control', 'public, max-age=60, s-maxage=600');
|
||||
const result = await githubClient.getSponsors(username || 'frillweeman');
|
||||
return result;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user