ActivityPub-federated video streaming platform using P2P directly in your web browser
Increase lazy static cache lifetime
Chocobozzz0e81c4977a60
diff --git a/server/core/controllers/lazy-static.ts b/server/core/controllers/lazy-static.tsindex 8ce6c6423f..b5e365f935 100644--- a/server/core/controllers/lazy-static.ts+++ b/server/core/controllers/lazy-static.ts@@ -115,7 +115,7 @@ async function getTorrent (req: express.Request, res: express.Response) {if (!file) return res.sendStatus(HttpStatusCode.NOT_FOUND_404)if (file.getVideo().isLocal()) {- return res.sendFile(join(CONFIG.STORAGE.TORRENTS_DIR, file.torrentFilename), { maxAge: STATIC_MAX_AGE.SERVER })+ return res.sendFile(join(CONFIG.STORAGE.TORRENTS_DIR, file.torrentFilename), { maxAge: STATIC_MAX_AGE.LAZY_SERVER })}// Proxify remote request without cachediff --git a/server/core/initializers/constants.ts b/server/core/initializers/constants.tsindex 9caed72a8f..fba7ae7b19 100644--- a/server/core/initializers/constants.ts+++ b/server/core/initializers/constants.ts@@ -1000,7 +1000,7 @@ export const OBJECT_STORAGE_PROXY_PATHS = {// Cache controlexport const STATIC_MAX_AGE = {SERVER: '2h',- LAZY_SERVER: '2d',+ LAZY_SERVER: '1y',CLIENT: '30d'}