hummingbird nginx setting make robots.txt fail

When I have
location ~* \.(txt|xml|js)$ {
expires 8d;
}
in nginx.conf ( on my plesk it is vhost_nginx.conf ) mydomain.tld/robots.txt gets 404 not found nginx error.

Removing "txt|"
location ~* \.(xml|js)$ {
expires 8d;
}
mydomain.tld/robots.txt gets contents of robots.txt

Also I have seen on Plesk support website
{
expires 8d;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
try_files $uri @fallback;
}
Any thoughts on modifications to hummingbird suggested changes?