diff options
| author | mo khan <mo@mokhan.ca> | 2013-12-27 11:13:25 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-12-27 11:13:25 -0700 |
| commit | 27142fc82badfc7dbc37478558a5bbdd1b47d249 (patch) | |
| tree | 8dbcf8f682ffca148738a3afb8d13140210ae04d | |
| parent | 52a684c10f448b390d0458b4663be263b2be7bb3 (diff) | |
update expires headers to 1 year from now.
| -rw-r--r-- | lib/web/responses/asset_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web/responses/asset_response.rb b/lib/web/responses/asset_response.rb index 9aa9beb..903abee 100644 --- a/lib/web/responses/asset_response.rb +++ b/lib/web/responses/asset_response.rb @@ -12,7 +12,7 @@ module Booty headers = { "Content-Type" => @content_type, "Cache-control" => "public, max-age=31536000", - "Expires" => "Wed, 01 Jan 2014 22:00:00 GMT" + "Expires" => CGI.rfc1123_date(Time.now + (365 * 24 * 60 * 60)) } [@status, headers, [File.read(File.join(Dir.pwd, @file_path))]] end |
