Improve nginx client images cache

This commit is contained in:
Chocobozzz
2019-07-29 14:58:41 +02:00
parent 1f82e3e885
commit c928e1364f
2 changed files with 6 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ server {
}
# Bypass PeerTube for performance reasons. Could be removed
location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ {
location ~ ^/client/(.*\.(js|css|png|svg|woff2|otf|ttf|woff|eot))$ {
add_header Cache-Control "public, max-age=31536000, immutable";
alias /var/www/peertube/peertube-latest/client/dist/$1;