From 4f309b8bbfdc29d5808815388b341cfe8b7cad6c Mon Sep 17 00:00:00 2001 From: Nutomic Date: Mon, 11 Sep 2023 12:05:23 +0200 Subject: [PATCH] Increase cache-control max-age to 60s Cache headers have been active in production for a while now, and I didnt see any issues reported. So it should be save to increase the max-age to reduce server load further. --- src/server/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/middleware.ts b/src/server/middleware.ts index 5e0c8b7b..e10f5c41 100644 --- a/src/server/middleware.ts +++ b/src/server/middleware.ts @@ -55,7 +55,7 @@ export function setCacheControl( if (hasJwtCookie(req)) { caching = "private"; } else { - caching = "public, max-age=5"; + caching = "public, max-age=60"; } }