开发者

setting expire headers in rails

开发者 https://www.devze.com 2023-04-04 02:41 出处:网络
I have the following in a before_filter in my application controller: def response_headers response.headers[\"Expires\"] = CGI.rfc1123_date(Time.n开发者_开发问答ow + 1.year)

I have the following in a before_filter in my application controller:

def response_headers
  response.headers["Expires"] = CGI.rfc1123_date(Time.n开发者_开发问答ow + 1.year)
end

but according to YSlow there still aren't any expire headers being set. Any ideas?

0

精彩评论

暂无评论...
验证码 换一张
取 消