From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:04:19 +0000 (-0400) Subject: wip X-Git-Url: http://these/git/readmes/%24%7B%60data:application/static/%7B?a=commitdiff_plain;h=0bcb2d77beac12e3b67e8c544ab73e4e16b17bb9;p=lemmy-ui.git wip --- 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")