debug: disable api and pin cache header

This commit is contained in:
martin-mfg
2025-06-27 09:20:26 +00:00
parent 6a724947d0
commit 0e2f0192f0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ export default async (req, res) => {
showStats.includes("issues_commented"),
);
let cacheSeconds = clampValue(
/*let cacheSeconds = clampValue(
parseInt(cache_seconds || CONSTANTS.CARD_CACHE_SECONDS, 10),
CONSTANTS.TWELVE_HOURS,
CONSTANTS.TWO_DAY,
@@ -127,7 +127,7 @@ export default async (req, res) => {
res.setHeader(
"Cache-Control",
`max-age=${cacheSeconds}, s-maxage=${cacheSeconds}, stale-while-revalidate=${CONSTANTS.ONE_DAY}`,
);
);*/
return res.send(
renderStatsCard(
+2 -2
View File
@@ -94,7 +94,7 @@ export default async (req, res) => {
showStats.includes("issues_commented"),
);
let cacheSeconds = clampValue(
/*let cacheSeconds = clampValue(
parseInt(cache_seconds || CONSTANTS.PIN_CARD_CACHE_SECONDS, 10),
CONSTANTS.ONE_DAY,
CONSTANTS.TEN_DAY,
@@ -106,7 +106,7 @@ export default async (req, res) => {
res.setHeader(
"Cache-Control",
`max-age=${cacheSeconds}, s-maxage=${cacheSeconds}`,
);
);*/
return res.send(
renderRepoCard(repoData, {