mirror of https://github.com/Chocobozzz/PeerTube
Don't cache torrent files
parent
af9b792268
commit
4937996095
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue