Repository is archived
No commit activity in last 3 years
No release in over 3 years
Sets the X-UA-Compatible header in all responses to enable Google Chrome Frame
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.5.3
 Project Readme

rack-chromeframe¶ ↑

Simple Rack middleware that sets the X-UA-Compatible header on responses to trigger Google Chrome Frame if the client has it installed.

Usage¶ ↑

Plain Rack (E.g. Sinatra)¶ ↑

gem 'rack-chromeframe'
require 'rack/chromeframe'

use Rack::ChromeFrame,

run app

Rails¶ ↑

Add a gem dependency to ‘config/environment.rb`:

config.gem 'rack-chromeframe', :lib => 'rack/chromeframe'

Insert the middleware by adding the following to ‘config/environment.rb`:

config.middleware.use Rack::ChromeFrame,

Copyright © 2010 Tricycle I.T. Pty Ltd. See LICENSE for details.