add back rack-cache
This commit is contained in:
parent
fef01eb4af
commit
5c8035b7a8
1
Gemfile
1
Gemfile
|
@ -4,6 +4,7 @@ source :rubygems
|
|||
|
||||
gem 'unicorn'
|
||||
gem 'rack-ssl', '~> 1.3'
|
||||
gem 'rack-cache'
|
||||
|
||||
group :development, :test do
|
||||
gem 'rake', '~> 0.9.2'
|
||||
|
|
|
@ -44,6 +44,8 @@ GEM
|
|||
listen (0.5.3)
|
||||
multi_json (1.3.6)
|
||||
rack (1.4.1)
|
||||
rack-cache (1.2)
|
||||
rack (>= 0.4)
|
||||
rack-ssl (1.3.2)
|
||||
rack
|
||||
raindrops (0.10.0)
|
||||
|
@ -69,6 +71,7 @@ DEPENDENCIES
|
|||
compass
|
||||
debugger
|
||||
foreman
|
||||
rack-cache
|
||||
rack-ssl (~> 1.3)
|
||||
rake (~> 0.9.2)
|
||||
rake-pipeline!
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
require 'rack'
|
||||
require 'rack/ssl'
|
||||
require 'rack/cache'
|
||||
require 'delegate'
|
||||
require 'time'
|
||||
|
||||
|
@ -105,6 +106,7 @@ class Travis::Web::App
|
|||
def builder
|
||||
builder = Rack::Builder.new
|
||||
builder.use Rack::SSL if environment == 'production'
|
||||
builder.use Rack::Cache
|
||||
builder.use Rack::Deflater
|
||||
builder.use Rack::Head
|
||||
builder.use Rack::ConditionalGet
|
||||
|
|
Loading…
Reference in New Issue
Block a user