Forum: Ruby on Rails subdomain-based page caching?

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.
Avram D. (Guest)
on 2008-12-13 07:23
(Received via mailing list)
Hello,

I just wanted to verify my understanding; As of rails 1.2, it was
impossible to have independent page caches on a per-domain basis,
right? In other words, if a single rails app responds to both
http://foo.com/index.html
  and http://bar.com/index.html, and uses page caching, it *must*
deliver the same page from cache for both of these requests.

I'm assuming this b/c cached pages supposedly never invoke your rails
code, so there is never an opportunity for your app to differentiate
the location of the cached files based on the domain.

Is this understanding correct? Or is there a way to get
http://foo.com/index.html
  and http://bar.com/index.html to be page-cached independently?

If not for Rails 1.2, then how about for any newer versions? I'm not
up to date on the 2.x capabilities.

Thanks,
Avram

So, if there was nobody else when God said "Let there be light," was
He talking to Himself? Does that mean He is insane? Because that would
explain a lot
This topic is locked and can not be replied to.