Hi
Even this topic isnt new, this problem always instantly arise after Nginx config, Also this resource come first in google search,
here are my few cents, in case you want to skip digging mindbraking topic
if you have this problem, most probable
yourdomain.conf has
location ~* \.(html|htm|txt)$ {
#add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
access_log off;
expires 1d;
break;
}
somewhere or in included file such as
include /usr/local/nginx/conf/staticfiles.conf;
you just need to comment it
and if you really have static resources or html to serve better rename them, or introduce more complex path based nginx rule policy
Surely you should not delete html contex with modx not to ruin its functionality