mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 17:44:16 +00:00
wip
This commit is contained in:
parent
7743fa98b9
commit
0bcb2d77be
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue