aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-17 14:21:18 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-17 14:21:18 +0200
commit493799609519c71a5f79b3e92444c5fed6f772dd (patch)
tree1c6ea2fe7e762d45a0b2ea0b36998f85dbbfb0f1 /server/controllers
parentaf9b7922680f18020dbaa2cb857bc7bd29ca0dba (diff)
downloadPeerTube-493799609519c71a5f79b3e92444c5fed6f772dd.tar.gz
PeerTube-493799609519c71a5f79b3e92444c5fed6f772dd.tar.zst
PeerTube-493799609519c71a5f79b3e92444c5fed6f772dd.zip
Don't cache torrent files
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/static.ts2
1 files changed, 1 insertions, 1 deletions
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
18staticRouter.use( 18staticRouter.use(
19 STATIC_PATHS.TORRENTS, 19 STATIC_PATHS.TORRENTS,
20 cors(), 20 cors(),
21 express.static(torrentsPhysicalPath, { maxAge: STATIC_MAX_AGE }) 21 express.static(torrentsPhysicalPath, { maxAge: 0 }) // Don't cache because we could regenerate the torrent file
22) 22)
23 23
24// Videos path for webseeding 24// Videos path for webseeding