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:
parent
4daca9672e
commit
79be2f204f
1 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue