Sending X-UA-Compatible header = small text on _admin in IE8


(Douglas (@finnatic at @waikato)) #1
We're looking to send a fairly standard X-UA-Compatible header for our servers.  In the apache config we've got:
 
<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    BrowserMatch MSIE ua9
    Header append X-UA-Compatible "IE=9" env=ua9
  </IfModule>
</IfModule>
 
This is fine for the served sites - but results in very small text on _admin urls in IE8.
 
Have others encountered this and found a solution?  I'm trying to figure out a FilesMatch directive that could output the header for all urls but _admin and _edit, but FilesMatch doesn't really support negative patterns.
 

(Scott Hall) #2

Hi Doug

Please be aware of browser support requirements at http://manuals.matrix.squizsuite.net/requirements#web-browser-support


Particularly the first para under the editing applications requirements.


Forcing IE to act anything other than its native form has only ended in support pain to date. Specially in EES/Edit+ (edit mode) where quite a few things won’t even work.


Cheers


Scotty


(Douglas (@finnatic at @waikato)) #3

Scotty - thanks for the reply.

 

We have a new website template in HTML5 where we need to send the header for websites being served from our Matrix CMS server to make sure IE displays the template correctly in standards mode and not compatibility mode.  My understanding is that header we're using tells Internet Explorer to display a page in IE9 mode if possible (see the bottom of http://msdn.microsoft.com/en-us/library/ie/ms533876(v=vs.85).aspx).

 

We've identified the need ourselves to not send the header for _admin and _edit -  and so I'm just asking if anyone's taken the header approach before and managed to craft a solution?  I've got something which I think is working but need to test it further (and add _edit):

 

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    <LocationMatch "(!_admin).*">
      BrowserMatch MSIE ua9
      Header append X-UA-Compatible "IE=9" env=ua9
    </LocationMatch>
  </IfModule>
</IfModule>

(Bart Banda) #4

Have you tired simply just adding the IE edge metatag in your source code?

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

I think you will never be able to 100% that all your IE users will not use compatibility mode as some users might have this forced via the browser.

 

http://stackoverflow.com/questions/3449286/force-ie-compatibility-mode-off-in-ie-using-tags 


(Douglas (@finnatic at @waikato)) #5

Hi Bart.  We considered the meta tag against the header... but we have a lot of design fragmentation and considering the possibility that someone might leave the metatag out of a design, setting the header seemed like a 'do it right and do it once' approach.

 

I still need to get back and test the config I have setup.