提交 136e5ea1 编写于 作者: R Rafael França

Merge pull request #22855 from rafbm/avoid-time-parse

Avoid `Time.parse` for static date
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册