mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 04:00:02 +00:00
Adding image cache max.
This commit is contained in:
parent
7ff1d2c381
commit
0c01af32db
1 changed files with 5 additions and 0 deletions
5
ansible/templates/nginx.conf
vendored
5
ansible/templates/nginx.conf
vendored
|
@ -67,5 +67,10 @@ server {
|
|||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue