Class: Texmailer::DontCache

Inherits:
Object
  • Object
show all
Defined in:
lib/texmailer/wapp.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ DontCache

Returns a new instance of DontCache.



4
5
6
# File 'lib/texmailer/wapp.rb', line 4

def initialize app
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



7
8
9
10
11
# File 'lib/texmailer/wapp.rb', line 7

def call env
  res = @app.call(env)
  res[1]["Expires"] = (Time.now - 100).utc.rfc2822
  return res 
end