Hello everyone
In rails how can add an expires header. In which file i need write
expires
year code?
Please advice.
Hello everyone
In rails how can add an expires header. In which file i need write
expires
year code?
Please advice.
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)
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 [email protected] wrote:
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/uLnVtOzeYCgJ.
For more options, visit https://groups.google.com/groups/opt_out.
–
-------------Regards---------------
G SubbaRao
Cell:08970668850
E-Mail:[email protected]
hi
sorry for my ignorance, in my server which file i need to enter expires
code like
On Tue, Aug 21, 2012 at 6:42 PM, G S RAO [email protected] wrote:
Please advice.
–
You received this message because you are subscribed to the Google G.
“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.
–
Regards by
Saravanan.P
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs