Fix static avatars/thumbnails cache

This commit is contained in:
Chocobozzz 2018-07-17 19:04:41 +02:00
parent 57bf30a984
commit 57a81ff649
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 4 additions and 3 deletions

View file

@ -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;
}