Skip to content

Commit 83c8801

Browse files
authored
perf: add CDN cache headers to metatags endpoint (dubinc#3663)
1 parent 3dd69d9 commit 83c8801

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/web/app/api/links/metatags/route.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export async function GET(req: NextRequest) {
3737
poweredBy: "Dub - The Modern Link Attribution Platform",
3838
},
3939
{
40-
headers: corsHeaders,
40+
headers: {
41+
...corsHeaders,
42+
"Cache-Control": "public, max-age=300",
43+
"Vercel-CDN-Cache-Control":
44+
"s-maxage=3600, stale-while-revalidate=86400",
45+
},
4146
},
4247
);
4348
} catch (error) {

0 commit comments

Comments
 (0)