aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-17 19:04:41 +0200
committerChocobozzz <me@florianbigard.com>2018-07-17 19:04:41 +0200
commit57a81ff649fa8c0d17505e4a7c5ab1001887b22a (patch)
treec1683fa1ddcf8630220298c0e77fba3d70b06d35 /support/nginx
parent57bf30a984ccbe58e1506f903055a15c1ddaf8f2 (diff)
downloadPeerTube-57a81ff649fa8c0d17505e4a7c5ab1001887b22a.tar.gz
PeerTube-57a81ff649fa8c0d17505e4a7c5ab1001887b22a.tar.zst
PeerTube-57a81ff649fa8c0d17505e4a7c5ab1001887b22a.zip
Fix static avatars/thumbnails cache
Diffstat (limited to 'support/nginx')
-rw-r--r--support/nginx/peertube3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 0e77f6ae4..f28f26f7a 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -57,7 +57,8 @@ server {
57 } 57 }
58 58
59 location ~ ^/static/(thumbnails|avatars)/(.*)$ { 59 location ~ ^/static/(thumbnails|avatars)/(.*)$ {
60 add_header Cache-Control "public, max-age=31536000, immutable"; 60 # Cache 2 hours
61 add_header Cache-Control "public, max-age=7200";
61 62
62 alias /var/www/peertube/storage/$1/$2; 63 alias /var/www/peertube/storage/$1/$2;
63 } 64 }