diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-17 19:04:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-17 19:04:41 +0200 |
commit | 57a81ff649fa8c0d17505e4a7c5ab1001887b22a (patch) | |
tree | c1683fa1ddcf8630220298c0e77fba3d70b06d35 /server/controllers | |
parent | 57bf30a984ccbe58e1506f903055a15c1ddaf8f2 (diff) | |
download | PeerTube-57a81ff649fa8c0d17505e4a7c5ab1001887b22a.tar.gz PeerTube-57a81ff649fa8c0d17505e4a7c5ab1001887b22a.tar.zst PeerTube-57a81ff649fa8c0d17505e4a7c5ab1001887b22a.zip |
Fix static avatars/thumbnails cache
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/static.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 1600068e0..8de9c5a78 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts | |||
@@ -31,7 +31,7 @@ const videosPhysicalPath = CONFIG.STORAGE.VIDEOS_DIR | |||
31 | staticRouter.use( | 31 | staticRouter.use( |
32 | STATIC_PATHS.WEBSEED, | 32 | STATIC_PATHS.WEBSEED, |
33 | cors(), | 33 | cors(), |
34 | express.static(videosPhysicalPath, { maxAge: STATIC_MAX_AGE }) | 34 | express.static(videosPhysicalPath) |
35 | ) | 35 | ) |
36 | staticRouter.use( | 36 | staticRouter.use( |
37 | STATIC_DOWNLOAD_PATHS.VIDEOS + ':id-:resolution([0-9]+).:extension', | 37 | STATIC_DOWNLOAD_PATHS.VIDEOS + ':id-:resolution([0-9]+).:extension', |