From 57a81ff649fa8c0d17505e4a7c5ab1001887b22a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Jul 2018 19:04:41 +0200 Subject: Fix static avatars/thumbnails cache --- support/nginx/peertube | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'support/nginx/peertube') 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 { } location ~ ^/static/(thumbnails|avatars)/(.*)$ { - add_header Cache-Control "public, max-age=31536000, immutable"; + # Cache 2 hours + add_header Cache-Control "public, max-age=7200"; alias /var/www/peertube/storage/$1/$2; } -- cgit v1.2.3