From 1edc12f7278cf507001f8e3aac0c8d3891a7144d Mon Sep 17 00:00:00 2001 From: James Tucker Date: Sun, 26 Aug 2012 11:50:49 -0700 Subject: [PATCH] Deprecation notice for cache_control parameter --- lib/rack/file.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rack/file.rb b/lib/rack/file.rb index 9b97a6230..faeb74cc3 100644 --- a/lib/rack/file.rb +++ b/lib/rack/file.rb @@ -25,6 +25,8 @@ def initialize(root, headers={}) @root = root # Allow a cache_control string for backwards compatibility if headers.instance_of? String + warn \ + "Rack::File headers parameter replaces cache_control after Rack 1.5." @headers = { 'Cache-Control' => headers } else @headers = headers