From ab545e0e193ca3eae8a9a7c0b112d3aa6017952b Mon Sep 17 00:00:00 2001 From: Nutomic Date: Tue, 12 Sep 2023 21:27:56 +0200 Subject: [PATCH] Increase cache-control max-age to 60s (#2124) 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. Co-authored-by: Dessalines --- 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 5e0c8b7b4..e10f5c410 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"; } }