Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

changed status code

Steven Tey108ed3058a68
diff --git a/pages/api/links/[key]/index.ts b/pages/api/links/[key]/index.ts
index a836014f97..909dc8fcaf 100644
--- a/pages/api/links/[key]/index.ts
+++ b/pages/api/links/[key]/index.ts
@@ -17,6 +17,7 @@ export default async function handler(
if (target) {
ev.waitUntil(redis.hincrby("stats", key, 1)); // increment click count
return NextResponse.redirect(target, {
+ status: 308,
headers: {
"cache-control":
"public, s-maxage=31536000, stale-while-revalidate=31536000",