debug: disable api and pin cache header
This commit is contained in:
@@ -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
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user