From bfee31e39f2734bd26bb3e4c52ec6fdf924729e3 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Fri, 16 Feb 2024 04:00:18 +0000 Subject: [PATCH] added innertube stuff --- server.js | 1 + 1 file changed, 1 insertion(+) 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");