Skip to content

Commit 9fd4fe6

Browse files
authored
Merge pull request #4054 from Yashh56/cache-control
feat: add cache control headers to GET response
2 parents 0500eaf + 92fee4f commit 9fd4fe6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/(collect)/p/[slug]/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export async function GET(request: Request, { params }: { params: Promise<{ slug
6363
headers: {
6464
'Content-Type': 'image/gif',
6565
'Content-Length': image.length.toString(),
66+
'Cache-Control': 'no-cache, no-store, must-revalidate',
67+
Pragma: 'no-cache',
68+
Expires: '0',
6669
},
6770
});
6871
}

0 commit comments

Comments
 (0)