Nginix server config

maybe this can help

location ~ /media/ {
	try_files $uri $uri/ /index.php?$uri&$args;
}

location ~ /api/ {
	try_files $uri $uri/ /index.php?$uri&$args;
}

location ~* \.(?:js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
	expires max;
	add_header Pragma public;
	add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
1 Like