Skip to content

Commit 9adc843

Browse files
committed
fix(api): add X-Cache-Status header for refresh=true responses (JhaSourav07#943)
1 parent 9b64cab commit 9adc843

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/api/streak/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export async function GET(request: Request) {
163163
'Content-Type': 'image/svg+xml',
164164
'Cache-Control': cacheControl,
165165
'Content-Security-Policy': SVG_CSP_HEADER,
166+
'X-Cache-Status': refresh ? `BYPASS, fetched=${new Date().toISOString()}` : 'HIT',
166167
},
167168
});
168169
} catch (error: unknown) {

0 commit comments

Comments
 (0)