Skip to content

Commit

Permalink
Deprecation notice for cache_control parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi authored and James Tucker committed Jan 4, 2013
1 parent 6870873 commit 1edc12f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rack/file.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1edc12f

Please sign in to comment.