From 9d895e386271b1e1238bb6f5317eb08ff988fdb9 Mon Sep 17 00:00:00 2001 From: isaaclombardssw Date: Thu, 23 Jul 2026 17:19:23 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=B8=20Raise=20image=20minimumCacheTTL?= =?UTF-8?q?=20so=20optimised=20images=20stay=20cached=20(#4902)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit next.config.mjs set images.minimumCacheTTL to 60s, so every /_next/image response was near-uncacheable and re-optimised constantly. Raise it to a year (31536000). Image URLs are keyed on source path + width + quality, so a content change in Tina produces a new upload path and a new URL — a long TTL is safe. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Q8genJyZboXaa4vgYhJF4P --- next.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index b34c03f063..1063af64fb 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -10,7 +10,7 @@ const config = { }, images: { deviceSizes: [384, 640, 750, 828, 1080, 1200, 1440, 1920, 2048, 3840], - minimumCacheTTL: 60, + minimumCacheTTL: 31536000, remotePatterns: [ {