From 0bcb2d77beac12e3b67e8c544ab73e4e16b17bb9 Mon Sep 17 00:00:00 2001 From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Fri, 30 Jun 2023 10:04:19 -0400 Subject: [PATCH] wip --- src/server/middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/middleware.ts b/src/server/middleware.ts index 24ae1b9..0420e47 100644 --- a/src/server/middleware.ts +++ b/src/server/middleware.ts @@ -27,12 +27,12 @@ export function setCacheControl( res: Response, next: NextFunction ) { - let caching: string; - if (process.env.NODE_ENV !== "production") { return next(); } + let caching: string; + if ( req.path.match(/\.(js|css|txt|manifest\.webmanifest)\/?$/) || req.path.includes("/css/themelist") -- 2.44.1