Forum: Ruby on Rails caching a page that was dynamically created ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6af47f6f8659cffca8a527f6f75b4e65?d=identicon&s=25 Jedrin (Guest)
on 2011-06-16 00:15
(Received via mailing list)
Say you have a page that you dynamically created with ajax calls and
RJS. Can you somehow get a copy of what that final page looks like and
somehow cache it away and later serve it from the cache ?

 A problem seems to be that if you navigate away from a dynamic page
and then hit the back browser button, you can then lose the dynamic
content. I now you can have your own sort of back link, but I am
wondering what other things might be possible. You also can't bookmark
stuff that was dynamically created either.  Whatever strategy you
employ effects the entire site, so that if you latter change it, you
have to change alot of code ..
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2011-06-16 08:59
(Received via mailing list)
On 15 June 2011 23:13, Jedrin <jrubiando@gmail.com> wrote:
> employ effects the entire site, so that if you latter change it, you
> have to change alot of code ..

You could save in the session (or the database) the current state of
the page and then use that information to re-render the appropriate
data when asked for that page again.

Colin
This topic is locked and can not be replied to.