On 27 Jan 2009, at 22:19, jonh...@gmail.com wrote: > > My question is, I really must do everything on ajax? > > Lets say if I call myapp.com/projects and projects use all those js > files, then I click on a "show" link and I'm redirected to myapp.com/ > projects/1 on this redirect, all js will be reloaded again? > Not necessarily - if your web server is serving the JS files with the correct caching headers then the browser shouldn't reload them (and using gzip encoding will make a big difference too).
Fred > Whats the best way to handle with javascript and caching? > > > --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---