This commit is contained in:
Alec Armbruster 2023-06-30 10:04:19 -04:00
parent 7743fa98b9
commit 0bcb2d77be
No known key found for this signature in database
GPG key ID: 52BC7C84E960FD1B

View file

@ -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")