On Tue, Aug 21, 2012 at 7:38 AM, Saravanan P <[email protected]> wrote: > Hello everyone > > In rails how can add an expires header. In which file i need write expires > year code? > > Please advice.
response.headers['Expires'] = CGI.rfc1123_date(10.days.from_now) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

