Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3 automatically adding X-UA-Compatible header?

Does Rails 3 automatically add a header if you are using IE8? I am seeing the meta tag for X-UA-Compatible set to "IE=8.0000" and it's messing up one of my views.

I can't seem to find anything else that would be doing it, so figured I'd ask the brains here.

Thanks, Ruprict

like image 517
Ruprict Avatar asked Sep 27 '10 20:09

Ruprict


1 Answers

If we have a look at all middlewares loaded in a vanilla rails3 app:

rake middleware
(in /private/tmp/bla)
use ActionDispatch::Static
use Rack::Lock
use ActiveSupport::Cache::Strategy::LocalCache
use Rack::Runtime
use Rails::Rack::Logger
use ActionDispatch::ShowExceptions
use ActionDispatch::RemoteIp
use Rack::Sendfile
use ActionDispatch::Callbacks
use ActiveRecord::ConnectionAdapters::ConnectionManagement
use ActiveRecord::QueryCache
use ActionDispatch::Cookies
use ActionDispatch::Session::CookieStore
use ActionDispatch::Flash
use ActionDispatch::ParamsParser
use Rack::MethodOverride
use ActionDispatch::Head
use ActionDispatch::BestStandardsSupport
run Bla::Application.routes

there's ActionDispatch::BestStandardsSupport which source is setting the X-UA-Compatible header, not with IE=8.000 though. Do you run 3.0.0?

like image 102
hellvinz Avatar answered Oct 15 '22 06:10

hellvinz