Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't cache torrent files

Chocobozzz493799609519
diff --git a/server/controllers/static.ts b/server/controllers/static.ts
index b20bafc76d..8fbf9cc974 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