Merge pull request 'Tell browsers to cache Gitea avatars for 30 days' (#313) from bugfix/312-gitea_avatar_caching into master

Reviewed-on: #313
This commit is contained in:
Greg 2021-02-26 21:25:41 +00:00
commit 3502fb0eec
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;
}