In my case, it had to do with the mime types. In your nginx.conf file, you can try to add the following line in the http section
nginx.conf
http
...http { ... include /etc/nginx/mime.types; server { ... }}