mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-09 01:54:02 +00:00
wip
This commit is contained in:
parent
7743fa98b9
commit
0bcb2d77be
|
@ -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