Re: [Rails] Add an Expires Header

2012-08-22 Thread Jordon Bedwell
On Tue, Aug 21, 2012 at 7:38 AM, Saravanan P 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 subsc

Re: [Rails] Add an Expires Header

2012-08-21 Thread Saravanan P
hi sorry for my ignorance, in my server which file i need to enter expires code like ExpiresActive on ExpiresDefault "access plus 1 year" On Tue, Aug 21, 2012 at 6:42 PM, G S RAO wrote: > If you are running on production environment then you can add expires > headers on ngi

Re: [Rails] Add an Expires Header

2012-08-21 Thread G S RAO
If you are running on production environment then you can add expires headers on nginx configration file On 21 August 2012 18:08, Saravanan P wrote: > Hello everyone > > In rails how can add an expires header. In which file i need write expires > year code? > > Please advice. > > -- > You receiv

[Rails] Add an Expires Header

2012-08-21 Thread Saravanan P
Hello everyone In rails how can add an expires header. In which file i need write expires year code? Please advice. -- 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 rubyonrails-talk@googlegroups.com.