Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdavis committed Feb 1, 2025
1 parent 04352e8 commit 4df7074
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/registry/pages/api/jobs-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ export default async function handler(req, res) {
jobInfoMap[job.uuid] = JSON.parse(job.gpt_content);
});

// Set cache control headers for CDN caching
res.setHeader(
'Cache-Control',
'public, max-age=86400, s-maxage=86400, stale-while-revalidate=604800',
);

res.status(200).json({
graphData,
jobInfoMap,
Expand Down

0 comments on commit 4df7074

Please sign in to comment.