Skip to content

Commit

Permalink
Merge pull request #22855 from rafbm/avoid-time-parse
Browse files Browse the repository at this point in the history
Avoid `Time.parse` for static date
  • Loading branch information
rafaelfranca committed Dec 30, 2015
2 parents 692bb7c + 040ed26 commit 136e5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/metal/conditional_get.rb
Expand Up @@ -228,7 +228,7 @@ def http_cache_forever(public: false, version: 'v1')
expires_in 100.years, public: public

yield if stale?(etag: "#{version}-#{request.fullpath}",
last_modified: Time.parse('2011-01-01').utc,
last_modified: Time.new(2011, 1, 1).utc,
public: public)
end

Expand Down

0 comments on commit 136e5ea

Please sign in to comment.