Object
@deprecated Use a HTTP library such as
[Net::HTTP](http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/) or [Curb](http://curb.rubyforge.org/) instead.
# File lib/nanoc/extra/chick.rb, line 67 def initialize(app, options = {}) @app = app @options = options end
# File lib/nanoc/extra/chick.rb, line 72 def call(env) res = @app.call(env) unless res[1].key?('Cache-Control') || res[1].key?('Expires') res[1]['Cache-Control'] = "max-age=#{@options[:max_age]}" end res end
[Validate]
Generated with the Darkfish Rdoc Generator 2.