Hello, I am using a iphone optimized version of my Rails app as explained here : http://www.railspikes.com/2007/11/8/iphone-subdomains-with-rails Everything is going well, the only problem that I have is with caching. Because Rails is caching iphone format with the extension .html, that does not allow me to cache these files without destroy the regular version of the website. Would someone have any idea of a solution ? Thank you very much, Pierre -- 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 -~----------~----~----~----~------~----~------~--~---
Pierre Pierre wrote:> Hello, > > I am using a iphone optimized version of my Rails app as explained here > : > http://www.railspikes.com/2007/11/8/iphone-subdomains-with-rails > > Everything is going well, the only problem that I have is with caching. > > Because Rails is caching iphone format with the extension .html, that > does not allow me to cache these files without destroy the regular > version of the website. > > Would someone have any idea of a solution ? > > Thank you very much, > > PierreHi, Not much idea for my problem... Impossible ? -- 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 -~----------~----~----~----~------~----~------~--~---
I went in caching.rb and change line 150 #request.path request.host + request.path then adapt your apache conf. to serve the good cache files depending on the virtualhost Pierre Pierre Pierre wrote:> Pierre Pierre wrote: >> Hello, >> >> I am using a iphone optimized version of my Rails app as explained here >> : >> http://www.railspikes.com/2007/11/8/iphone-subdomains-with-rails >> >> Everything is going well, the only problem that I have is with caching. >> >> Because Rails is caching iphone format with the extension .html, that >> does not allow me to cache these files without destroy the regular >> version of the website. >> >> Would someone have any idea of a solution ? >> >> Thank you very much, >> >> Pierre > > Hi, > > Not much idea for my problem... Impossible ?-- 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 -~----------~----~----~----~------~----~------~--~---