I am developing an Express site that goes through the nginx proxy. Sometimes when I load a page in a browser, I get the following:
GET http://myapp.local/css/bootstrap.css net::ERR_CONTENT_LENGTH_MISMATCH

If I refresh the page, it usually quits. But if the update is over and over, it will reappear.
What is the problem? What can I do to narrow down the problem here? Here is my nginx conf for this server:
server { listen 80; server_name www.myapp.local; rewrite ^(.*) http://myapp.local$1 permanent; } server { listen 80; server_name myapp.local; access_log /vagrant/nginx/logs/myapp.local/access.log; error_log /vagrant/nginx/logs/myapp.local/error.log; location / { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }
This is definitely related to the nginx proxy. Because if I access the site using only the IP address and Node port: http://10.10.10.10:8080 , I never get an error. But if I access it using a proxy host: http://myapp.local , then I will eventually get an error (maybe 1 out of 10 chances I see it).
source share