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;
|
||||
}
|
||||
|
||||
# cache medias
|
||||
location ~* (/images/|/photo/) {
|
||||
# cache users medias
|
||||
location /photo/ {
|
||||
# 604800 = 1 week
|
||||
more_set_headers "Cache-Control: private, immutable, max-age=604800";
|
||||
}
|
||||
|
||||
# cache static files
|
||||
location /static/ {
|
||||
location ~* (/images/|/static/) {
|
||||
# 300 = 5 minutes
|
||||
more_set_headers "Cache-control: public, max-age=300";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue