<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx</link><description>I recently encountered a blog that isn&amp;rsquo;t looking right in IE9: 
 
 
 
 The site renders just fine in other browsers, and when the page is put into Compatibility View by ticking the icon in the address bar: 
 
 
 
 What&amp;rsquo;s going on here</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx#10155442</link><pubDate>Mon, 18 Apr 2011 23:44:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10155442</guid><dc:creator>Pebe</dc:creator><description>&lt;p&gt;IMHO, the other browsers should follow IE on this one.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10155442" width="1" height="1"&gt;</description></item><item><title>re: IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx#10149725</link><pubDate>Mon, 04 Apr 2011 21:09:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10149725</guid><dc:creator>JamesJara</dc:creator><description>&lt;p&gt;@ Johnny&lt;/p&gt;
&lt;p&gt;maybe this link can help you, should not necessarily be with htaccess&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.askapache.com/htaccess/using-http-headers-with-htaccess.html"&gt;www.askapache.com/.../using-http-headers-with-htaccess.html&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10149725" width="1" height="1"&gt;</description></item><item><title>re: IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx#10147933</link><pubDate>Wed, 30 Mar 2011 21:43:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10147933</guid><dc:creator>EricLaw [MSFT]</dc:creator><description>&lt;p&gt;@Johnny: I don&amp;#39;t have an Apache server and I have no idea how you go about configuring one. I suspect your favorite search engine might know. As noted by Dominic just above you, apparently the &amp;quot;MultiViews&amp;quot; feature has this bug. The article he links to appears to have a solution for Apache 2.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10147933" width="1" height="1"&gt;</description></item><item><title>re: IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx#10147931</link><pubDate>Wed, 30 Mar 2011 21:38:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10147931</guid><dc:creator>Johnny Cadelco</dc:creator><description>&lt;p&gt;Eric,&lt;/p&gt;
&lt;p&gt;Can you actually post the solution rather than stating the problem. &amp;nbsp;What are specific steps in apache config so I can fix this issue? &amp;nbsp;Step by step please.&lt;/p&gt;
&lt;p&gt;Johnny&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10147931" width="1" height="1"&gt;</description></item><item><title>re: IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx#10146524</link><pubDate>Mon, 28 Mar 2011 08:05:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10146524</guid><dc:creator>Dominic White</dc:creator><description>&lt;p&gt;Thanks for the headsup. It seems it is a long-standing bug[1] between Apache, mod_negotiate, PHP &amp;amp; IE9&amp;#39;s change in behaviour. I&amp;#39;ve disabled MultiViews as I don&amp;#39;t really need them and got the following on testing, which looks good:&lt;/p&gt;
&lt;p&gt;GET &lt;a rel="nofollow" target="_new" href="https://singe.za.net/blog/serendipity.css"&gt;singe.za.net/.../serendipity.css&lt;/a&gt; HTTP/1.1&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Request Headers:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Host[singe.za.net]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; User-Agent[Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Accept[text/css]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Accept-Language[en-us,en;q=0.5]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Accept-Encoding[gzip, deflate]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Accept-Charset[ISO-8859-1,utf-8;q=0.7,*;q=0.7]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Keep-Alive[115]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; DNT[1]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Connection[keep-alive]&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Response Headers:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Date[Mon, 28 Mar 2011 07:55:56 GMT]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Server[Apache]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Status[200 OK]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Set-Cookie[REDACTED; path=/&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Expires[Mon, 28 Mar 2011 08:55:56 GMT]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; X-Session-Reinit[true]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Vary[Accept-Encoding]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Content-Encoding[gzip]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Content-Length[2542]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Keep-Alive[timeout=15, max=100]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Connection[Keep-Alive]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Content-Type[text/css; charset=UTF-8]&lt;/p&gt;
&lt;p&gt;[1] &lt;a rel="nofollow" target="_new" href="http://www.gerd-riesselmann.net/archives/2005/04/beware-of-apaches-multiviews"&gt;www.gerd-riesselmann.net/.../beware-of-apaches-multiviews&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10146524" width="1" height="1"&gt;</description></item><item><title>re: IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx#10146446</link><pubDate>Sun, 27 Mar 2011 22:05:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10146446</guid><dc:creator>Adam Barth</dc:creator><description>&lt;p&gt;You&amp;#39;re brave for changing the Accept header. &amp;nbsp;AFAICT, the Accept header is even more fiddly than the User-Agent header.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10146446" width="1" height="1"&gt;</description></item><item><title>re: IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx#10146402</link><pubDate>Sun, 27 Mar 2011 17:36:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10146402</guid><dc:creator>EricLaw [ex-MSFT]</dc:creator><description>&lt;p&gt;@Paul: That&amp;#39;s actually a rather different problem. They&amp;#39;re serving their JavaScript as text/plain AND they&amp;#39;re sending X-Content-Type-Options: nosniff, informing the client that this is the definitive MIME-type and the response type should not be sniffed to anything else. That&amp;#39;s covered here: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/ie/archive/2010/10/26/mime-handling-changes-in-internet-explorer.aspx"&gt;blogs.msdn.com/.../mime-handling-changes-in-internet-explorer.aspx&lt;/a&gt; and here: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/ieinternals/archive/2010/09/27/ie9-beta-google-image-search-javascript-content-type-and-nosniff.aspx"&gt;blogs.msdn.com/.../ie9-beta-google-image-search-javascript-content-type-and-nosniff.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10146402" width="1" height="1"&gt;</description></item><item><title>re: IE9 Standards Mode Accepts only text/css for stylesheets</title><link>http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406-not-acceptable-php-ie9-standards-mode-accepts-only-text_2F00_css-for-stylesheets.aspx#10146399</link><pubDate>Sun, 27 Mar 2011 17:20:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10146399</guid><dc:creator>Paul Irish</dc:creator><description>&lt;p&gt;Similar situation for javascript, it appears. &lt;/p&gt;
&lt;p&gt;There are a few folks out there that hotlink javascript from the github repo.. Those are served with text/plain and IE9 doesn&amp;#39;t evaluate them.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://modernizr.github.com/Modernizr/output.html"&gt;modernizr.github.com/.../output.html&lt;/a&gt; is an example.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10146399" width="1" height="1"&gt;</description></item></channel></rss>