Hi, I came across this article on yahoo http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html how do i implement this in a rails app that serves up images? thanks/ -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
mixplate
2007-May-31 20:43 UTC
Re: are images automatically cached? if not, put it in rails
disreggard, just put it in the .htaccess and all is good. mixplate wrote:> Hi, > I came across this article on yahoo > > http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html > > how do i implement this in a rails app that serves up images? > > thanks/-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick Olson
2007-May-31 21:28 UTC
Re: are images automatically cached? if not, put it in rails?
On 5/31/07, mixplate <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > I came across this article on yahoo > > http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html > > how do i implement this in a rails app that serves up images? > > thanks/If you''re talking about static images, you can do this in your web server (apache/lighttpd/nginx/etc). If you''re talking about dynamic images served by rails directly, you can set your own expires headers: http://rails.rubyonrails.org/classes/ActionController/Base.html#M000272 -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---