Nginx how to fix error 304?

The problem with the subdomain is not loaded on the main site content, pictures, videos, styles and so on. and the log displays error 304.
Connect here such address:
<script src="http://cdn._адрес сайт_.info/templates/js/jquery.min.js"></script>

Nothing is going on, but if you follow the link that Jquery normally loaded.
The Nginx Configuration.
#user nobody;
worker_processes 6;

events {
 worker_connections 1024;
}
 rtmp_auto_push on;

http {
 include mime.types;
 default_type application/octet-stream;
 sendfile on;
 keepalive_timeout 65;

 server {
 listen 80;
 server_name localhost;

 access_log /var/log/nginx/access.log;
 error_log /var/log/nginx/error.log;

 location / {
 root /var/www;
 index index.html index.htm;

}


 # rtmp control
 location /control {
 rtmp_control all;
}

 location /hls/ {
 types {
 application/vnd.apple.mpegurl m3u8;
 video/mp2t ts;
}
 root /var/www;
}

 error_page 500 502 503 504 /50x.html;
 location =/50x.html
{
 root html;
}
}
}
September 19th 19 at 13:00
2 answers
September 19th 19 at 13:02
304 is not an error, it means that the URI has not changed. Most likely the problem is in access rights to files
September 19th 19 at 13:04
chmod-R 0777 path to directory
if not helped drugs come with your ssh

Find more questions by tags Nginx