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?
精彩评论