From 7c5f28552ffb6b5fe00466f1afc6ecc057d78e4f Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 29 Nov 2023 19:35:08 +0000 Subject: [PATCH] lol --- p/server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/p/server.js b/p/server.js index 6ac7135f..98dfec6a 100644 --- a/p/server.js +++ b/p/server.js @@ -46,7 +46,7 @@ app.use(function (req, res, next) { next(); }); -app.use(function (req, res, next) { +app.use(function (_req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.setHeader("Cache-Control", "public, max-age=232337763"); // cache header res.setHeader("poketube-cacher", "PROXY_FILES"); @@ -60,6 +60,7 @@ app.use(function (req, res, next) { */ const proxy = async (req, res) => { const { fetch } = await import("undici") + res.setHeader("Cache-Control", "public, max-age=232337763"); // cache header try { let url; @@ -99,7 +100,7 @@ app.get("/", (req, res) => { status: "200", version: "1.1.0", URL_WHITELIST, - cache: "max-age-1848", + cache: "max-age-232337763", }; res.json(json);