From a4de979332fe5edb4942604cf2469af1452f7838 Mon Sep 17 00:00:00 2001 From: Spencer Woo Date: Sun, 13 Feb 2022 22:12:23 +0800 Subject: [PATCH] change s-maxage to 3540s, add swr --- config/api.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/api.config.js b/config/api.config.js index 5bcf6f7..d5c8229 100644 --- a/config/api.config.js +++ b/config/api.config.js @@ -31,5 +31,5 @@ module.exports = { // Cache-Control header, check Vercel documentation for more details. // https://vercel.com/docs/concepts/edge-network/caching - cacheControlHeader: 'max-age=0, s-maxage=3600, stale-while-revalidate=3540' + cacheControlHeader: 'max-age=0, s-maxage=3540, stale-while-revalidate=60' }