开发者

setting expire headers in rails

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜