mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
wip
This commit is contained in:
parent
7743fa98b9
commit
0bcb2d77be
1 changed files with 2 additions and 2 deletions
|
@ -27,12 +27,12 @@ export function setCacheControl(
|
||||||
res: Response,
|
res: Response,
|
||||||
next: NextFunction
|
next: NextFunction
|
||||||
) {
|
) {
|
||||||
let caching: string;
|
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== "production") {
|
if (process.env.NODE_ENV !== "production") {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let caching: string;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
req.path.match(/\.(js|css|txt|manifest\.webmanifest)\/?$/) ||
|
req.path.match(/\.(js|css|txt|manifest\.webmanifest)\/?$/) ||
|
||||||
req.path.includes("/css/themelist")
|
req.path.includes("/css/themelist")
|
||||||
|
|
Loading…
Reference in a new issue