On 7 April 2011 18:02, UA <ritvi...@gmail.com> wrote: > When I create a profile at LinkedIn - the profile content is actually > stored in database. When I pull page (my profile public page), I see > the content. Surely the content would be being pulled form database. > Yet, this public website page is cached by Google Search somehow. > Example - I enter my name in Google and my linkedin profile appears in > Google Search. How can I do this in rails?
There's nothing special going on here. When you view the page in your web browser, the server-side software constructs an HTML (using information from the database), and sends the HTML to your browser. That HTML document is complete and makes sense by itself; it has no reference or connection to the database that the information originally came from. It is just like a static HTML file. So when Googlebot visits the web page, it gets the same, normal HTML document, and it caches that. Chris -- 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.