We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b654722 commit 677bba3Copy full SHA for 677bba3
1 file changed
apps/backend/src/app/api/latest/projects/[project_id]/.well-known/jwks.json/route.ts
@@ -27,6 +27,7 @@ export const GET = createSmartRouteHandler({
27
body: yupObject({
28
keys: yupArray().defined(),
29
}).defined(),
30
+
31
}),
32
async handler({ params, query }) {
33
const project = await getProject(params.project_id);
@@ -39,6 +40,10 @@ export const GET = createSmartRouteHandler({
39
40
statusCode: 200,
41
bodyType: "json",
42
body: await getPublicProjectJwkSet(params.project_id, query.include_anonymous === "true"),
43
+ headers: {
44
+ // Cache for 1 hour
45
+ "Cache-Control": "public, max-age=3600",
46
+ },
47
};
48
},
49
});
0 commit comments