Fix static avatars/thumbnails cache
This commit is contained in:
parent
57bf30a984
commit
57a81ff649
3 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue