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
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
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
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.
4 matches
Mail list logo