Permalink
Browse files

Correct the default cache-control header.

The invalid max-age syntax confuses rack cache.
  • Loading branch information...
1 parent f886b2c commit e79e369127ad7e9d5cb107e1c3de3fd5b223129c @NZKoz NZKoz committed with Oct 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/send_file.rb
View
@@ -23,7 +23,7 @@ def send_file(file)
end
headers['ETag'] ||= Digest::MD5.hexdigest(file.content)
- headers['Cache-Control'] ||= 'public, max-age: 31557600'
+ headers['Cache-Control'] ||= 'public, max-age=31557600'
headers['Last-Modified'] ||= Time.new.httpdate
[200, headers, [file.content]]

0 comments on commit e79e369

Please sign in to comment.