Sha256: f615771a511268a55cd407c9050ec0415d92b8a1d728165a823e72d4716d021a

Contents?: true

Size: 278 Bytes

Versions: 99

Compression:

Stored size: 278 Bytes

Contents

require 'sinatra'
require 'rack/cache'

use Rack::Cache do
  set :verbose, true
  set :metastore,   'heap:/'
  set :entitystore, 'heap:/'
end

before do
  last_modified $updated_at ||= Time.now
end

get '/' do
  erb :index
end

put '/' do
  $updated_at = nil
  redirect '/'
end

Version data entries

99 entries across 75 versions & 19 rubygems

Version Path
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/example/sinatra/app.rb
swipe-rails-0.0.5 vendor/bundle/gems/rack-cache-1.2/example/sinatra/app.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/rack-cache-1.2/example/sinatra/app.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/rack-cache-1.2/example/sinatra/app.rb
challah-1.0.0.beta3 vendor/bundle/gems/rack-cache-1.2/example/sinatra/app.rb
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
challah-1.0.0.beta2 vendor/bundle/gems/rack-cache-1.2/example/sinatra/app.rb
challah-1.0.0.beta vendor/bundle/gems/rack-cache-1.2/example/sinatra/app.rb
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/example/sinatra/app.rb