http-equiv=“X-UA-Compatible” content=“IE=edge,chrome=1” … Putting this in .htaccess?

后端 未结 4 1178
-上瘾入骨i
-上瘾入骨i 2020-12-13 22:05

I downloaded html5 boilerplate and it wouldnt validate with this in the header.


         


        
4条回答
  •  孤城傲影
    2020-12-13 23:03

    The best htaccess configuration that I found is this one below:

    
      
        BrowserMatch MSIE ie
        Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
      
    
    

    Because it sends the header just for IE browsers.

提交回复
热议问题