feature: extend default card cache time to 6 hours (#3242)

* feature: extend default card cache time to 8 hours

* reduce to six hours
This commit is contained in:
Alexandr Garbuzov authored and GitHub committed 2023-09-19 11:54:27 +02:00
1 parent eb787af325
commit 2ee803fc16
9 files changed
+45 -33

No files matched your search

+2 -2
View File
@@ -188,8 +188,8 @@ describe("Test /api/gist", () => {
expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml");
expect(res.setHeader).toBeCalledWith(
"Cache-Control",
`max-age=${CONSTANTS.FOUR_HOURS / 2}, s-maxage=${
CONSTANTS.FOUR_HOURS
`max-age=${CONSTANTS.SIX_HOURS / 2}, s-maxage=${
CONSTANTS.SIX_HOURS
}, stale-while-revalidate=${CONSTANTS.ONE_DAY}`,
);
});