From 0f8b7670f488d7f7a88205405f45f73d37ac2a48 Mon Sep 17 00:00:00 2001 From: Lucas Smith Date: Thu, 29 Jan 2026 16:05:08 +1100 Subject: [PATCH] fix: correct path prefix check for static assets caching (#2433) --- apps/remix/server/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix/server/main.js b/apps/remix/server/main.js index e0d54f65c..15fa84e12 100644 --- a/apps/remix/server/main.js +++ b/apps/remix/server/main.js @@ -17,7 +17,7 @@ server.use( serveStatic({ root: 'build/client', onFound: (path, c) => { - if (path.startsWith('./build/client/assets')) { + if (path.startsWith('build/client/assets')) { // Hard cache assets with hashed file names. c.header('Cache-Control', 'public, immutable, max-age=31536000'); } else {