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

Assuming you’ve designed your backend application to take advantage of HTTP’s caching features, no further code or configuration is required for basic caching.

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::Cache,

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