I see an empty line in the response before the doctype declaration. After I copied / pasted HTML from the Chrome network tab, did I find a few? character right before doctype (it looks like it's some kind of character that notepad ++ cannot display for any reason). Check this file on vim on your server. Suppose you find a character before doctype that you do not have on your local machine. Remove it and assume that it will work (it works on my machine, at least the head is correctly disassembled) 
From the author of the question:
Thanks to Mercurial for BOM, it threw the encoding and called the specification. And also there is a php file that is enclosed? > Then spaces follow. After updating the broken file and removing the space, finally itβs ok :) ..
source share