1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

fix static cache for "images"

This commit is contained in:
OniriCorpe 2024-02-11 21:53:22 +01:00
parent 4daca9672e
commit 79be2f204f

View file

@ -46,14 +46,14 @@ location __PATH__/ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
} }
# cache medias # cache users medias
location ~* (/images/|/photo/) { location /photo/ {
# 604800 = 1 week # 604800 = 1 week
more_set_headers "Cache-Control: private, immutable, max-age=604800"; more_set_headers "Cache-Control: private, immutable, max-age=604800";
} }
# cache static files # cache static files
location /static/ { location ~* (/images/|/static/) {
# 300 = 5 minutes # 300 = 5 minutes
more_set_headers "Cache-control: public, max-age=300"; more_set_headers "Cache-control: public, max-age=300";
} }