Skip to content

Commit

Permalink
Corrected Caching duration (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
rupamkairi authored Feb 13, 2025
1 parent 895bdcf commit dc1477b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/server/src/pages/api/v1/fires/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ export default async function firesBySiteHandler(
if(CACHING) {
res.setHeader(
"Cache-Control",
"public, max-age=7200 s-maxage=3600, stale-while-revalidate=7200"
"public, max-age=1800, s-maxage=86400, stale-while-revalidate=86400"
);
res.setHeader("CDN-Cache-Control", "max-age=7200");
res.setHeader("Cloudflare-CDN-Cache-Control", "max-age=7200");
res.setHeader("CDN-Cache-Control", "max-age=86400");
res.setHeader("Cloudflare-CDN-Cache-Control", "max-age=86400");
}

res.status(200).json(fires);
Expand Down

0 comments on commit dc1477b

Please sign in to comment.