Don't cache torrent files
This commit is contained in:
parent
af9b792268
commit
4937996095
|
@ -18,7 +18,7 @@ const torrentsPhysicalPath = CONFIG.STORAGE.TORRENTS_DIR
|
||||||
staticRouter.use(
|
staticRouter.use(
|
||||||
STATIC_PATHS.TORRENTS,
|
STATIC_PATHS.TORRENTS,
|
||||||
cors(),
|
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
|
// Videos path for webseeding
|
||||||
|
|
Loading…
Reference in New Issue