chore: add cache headers to og endpoint (#2240)

This commit is contained in:
Matti Nannt
2024-03-14 15:24:23 +01:00
committed by GitHub
parent be8e461f55
commit 0332a2efe3

View File

@@ -52,6 +52,9 @@ export async function GET(req: NextRequest) {
{
width: 800,
height: 400,
headers: {
"Cache-Control": "public, s-maxage=600, max-age=1800, stale-while-revalidate=600, stale-if-error=600",
},
}
);
}