From 7dbc810f2b2af4bfcec36d9ad7d0edb4106c5c9d Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 21 Feb 2023 14:28:54 -0500 Subject: [PATCH] test cache --- src/entry.server.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entry.server.tsx b/src/entry.server.tsx index 3ab4c3f3..253d2c5b 100644 --- a/src/entry.server.tsx +++ b/src/entry.server.tsx @@ -23,6 +23,7 @@ export default function handleRequest( // check if we have a cached response in memory const cachedResponse = cache.get(request.url); if (cachedResponse) { + console.log('Serving from cache', request.url); // if we have a cached response, check if it's less than 5 seconds old const now = new Date(); const diff = now.getTime() - cachedResponse.date.getTime();