Adding image cache max.

pull/722/head
Dessalines 2019-09-08 11:32:39 -07:00
parent 9771b976e5
commit bd40a784cf
1 changed files with 5 additions and 0 deletions

View File

@ -67,5 +67,10 @@ server {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
if ($request_uri ~ \.(?:ico|gif|jpe?g|png|webp|bmp|mp4)$) {
add_header Cache-Control "public";
expires max;
}
} }
} }