net::ERR_INCOMPLETE_CHUNKED_ENCODING in Chrome only

I encountered this problem yesterday. It’s because the server didn’t respond with some resources.

In my page, I have some large file links like <a href="/file_path">file_name</a>.
This happened only in Chrome.

After awhile, I recognized this may be caused by Chrome’s ‘Predict network actions to improve page load performance’ feature. So, I turned off this feature in chrome://settings and tried it again. As expected, the error didn’t occur again.

After that, I changed resource links to have full_url_path instead of relative_path. In Rails, use resource_url instead of resource_path. Then I didn’t have to turn off Chrome’s feature, and it looks good.

Leave a Comment