net::ERR_INCOMPLETE_CHUNKED_ENCODING in Chrome only net::ERR_INCOMPLETE_CHUNKED_ENCODING in Chrome only google-chrome google-chrome

net::ERR_INCOMPLETE_CHUNKED_ENCODING in Chrome only


I have met this problem yesterday. It's because of the server didn't response some resources.

In my page, i have some large file links like<a href="/file_path">file_name</a>,and this happend only in chrome.

In a while ,I recognized this maybe caused by the chrome's 'Predict network actions to improve page load performance' feature.So I turned off this feature in chrome://settings and try it again. As expected, the error didn't occur again.

After that, I changed resource links with full_url_path instead of relative_path(in rails, use resource_url instead of resource_path), then I didn't have to turn off the chrome's feature. And it looks good.


I had this with a Wordpress website, also only in Chrome.

Updating the website and its plugins to the latest version didn't help, and other people didn't seem to have the same problem when visiting the website, but then I saw this post, turned off my antivirus (avast) real-time shields, as suggested, and the problem went away.

NOTE: The Real-Time Protection on some of the various anti-virus programs (AVAST, Kapersky and ESET) seem to be a major cause of this error.


In my case, the problem was cache-related and was happening when doing a CORS request.

As stated in comments above:

the error seemed to appear randomly

This is because of the Http cache system.

Forcing the response header Cache-Control to no-cache resolved my issue:

[ using Symfony HttpFoundation component ]

<?php$response->headers->add(array(   'Cache-Control' => 'no-cache'));