Skip to content

Commit

Permalink
update og response
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed May 23, 2024
1 parent 5483658 commit 09e7e45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/og/merchant/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ export const GET: RequestHandler = async ({ url }) => {
const image = await generateImage(component);

return new Response(image, {
status: 200,
headers: {
'content-type': 'image/png',
'cache-control': 'max-age=31449600'
'cache-control': 'public, immutable, no-transform, max-age=31536000'
}
});
};

0 comments on commit 09e7e45

Please sign in to comment.