Tell browsers to cache Gitea avatars for 30 days

fixes #312
This commit is contained in:
Basti 2021-02-26 20:41:53 +01:00
parent ab515e2101
commit 891b5f3fee
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
1 changed files with 7 additions and 2 deletions

View File

@ -24,10 +24,15 @@ server {
client_max_body_size 20M;
location / {
# Increase number of buffers. Default is 8
location ~ ^/(avatars|repo-avatars)/.*$ {
proxy_buffers 1024 8k;
proxy_pass http://_gitea;
proxy_http_version 1.1;
expires 30d;
}
location / {
proxy_buffers 1024 8k;
proxy_pass http://_gitea;
proxy_http_version 1.1;
}