Hi All,
I''m using RJS templates extensively in my app, but now that
I''ve gone
back and started trying to cache some common things, I''m finding that
RJS templates and caching don''t seem to go well together.
It seems that I can''t do any page or action caching on an rjs template,
because even though it gets cached, when it''s served back up the mime
type is text/html instead of text/js, and the browser tries to plop the
javascript into the page rather than executing it.
I can cache content in the partials that the rjs template references
via fragment caching, but that''s very limited because, as I understand
it, fragments can''t be cached based on url paramaters like the other
caching methods.
Does anyone have any good ideas on how to cache rjs templates?
Thanks!
Tom
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---