Class: Rack::Nocache

Inherits:
Object
  • Object
show all
Defined in:
lib/polygon/core_ext/rack/nocache.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Nocache

Returns a new instance of Nocache.



3
4
5
# File 'lib/polygon/core_ext/rack/nocache.rb', line 3

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



7
8
9
10
# File 'lib/polygon/core_ext/rack/nocache.rb', line 7

def call(env)
  status, headers, body = @app.call(patch_request_headers(env))
  [status, patch_response_headers(headers), body]
end