net::ERR_INCOMPLETE_CHUNKED_ENCODING
.htaccess, google-chrome, mod-rewrite
Solution
In my case, the problem was cache-related and was happening when doing a CORS request.
I post my response here cause this is the first resource I found on Google for `net::ERR_INCOMPLETE_CHUNKED_ENCODING` error.
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'
));
Problem
I use .htaccess to rewrite url from someurl.com/ to someurl.com/public/. First .htaccess in www root contains this: ``` DirectoryIndex ./public/ RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(.*)$ ./public/$1 [QSA] ``` and second one in folder /public/ contains this: ``` DirectoryIndex _main.php RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(.*)$ ./?params=$1 [QSA] ``` And the problem is when I open url someurl.com/ without "public". Page is loaded correctly, but in Google Chrome console I got error: net::ERR_INCOMPLETE_CHUNKED_ENCODING. When I open url someurl.com/public/ page loads without any error. Any ideas, please?