diff --git a/conf/nginx.conf b/conf/nginx.conf index ab5df41..399fe9a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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"; }