Skip to content

Commit b127dcc

Browse files
committed
fix: specify the cache-control for badges
1 parent 2e4e146 commit b127dcc

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

frontend/routes/badges/package.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const handler: Handlers<unknown, State> = {
4848
return new Response(res.body, {
4949
status: res.status,
5050
headers: {
51+
"cache-control": "max-age=300, s-maxage=300",
5152
"content-type": res.headers.get("content-type")!,
5253
},
5354
});

frontend/routes/badges/package_score.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const handler: Handlers<unknown, State> = {
5252
return new Response(res.body, {
5353
status: res.status,
5454
headers: {
55+
"cache-control": "max-age=300, s-maxage=300",
5556
"content-type": res.headers.get("content-type")!,
5657
},
5758
});

frontend/routes/badges/scope.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const handler: Handlers<unknown, State> = {
4848
return new Response(res.body, {
4949
status: res.status,
5050
headers: {
51+
"cache-control": "max-age=300, s-maxage=300",
5152
"content-type": res.headers.get("content-type")!,
5253
},
5354
});

0 commit comments

Comments
 (0)