diff --git a/server.js b/server.js index caec3a64..7b4f4b0f 100644 --- a/server.js +++ b/server.js @@ -177,6 +177,7 @@ toobusy.maxLag(3500); } const a = 890; + if (!req.url.match(/^\/(css|js|img|font)\/.+/)) { res.setHeader("Cache-Control", "public, max-age=" + a); // cache header res.setHeader("poketube-cacher", "PAGE");