From 493799609519c71a5f79b3e92444c5fed6f772dd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Oct 2017 14:21:18 +0200 Subject: [PATCH] Don't cache torrent files --- server/controllers/static.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/static.ts b/server/controllers/static.ts index b20bafc76..8fbf9cc97 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -18,7 +18,7 @@ const torrentsPhysicalPath = CONFIG.STORAGE.TORRENTS_DIR staticRouter.use( STATIC_PATHS.TORRENTS, cors(), - express.static(torrentsPhysicalPath, { maxAge: STATIC_MAX_AGE }) + express.static(torrentsPhysicalPath, { maxAge: 0 }) // Don't cache because we could regenerate the torrent file ) // Videos path for webseeding -- 2.25.1