是否有可能使herokus Web服务器进行全页面缓存唯一键的子域(可能使用机架中间件?)在heroku上使用自定义子域的Rails caches_page?
即。
class MyController < ApplicationController
caches_page :index
def index
@content = MyObject.find(request.subdomain)
...
subdomain1.myapp.com > <cachedir>/subdomain1/index.html
subdomain2.myapp.com > <cachedir>/subdomain2/index.html
下面的技术要求,以nginx的重写访问它似乎并没有成为在Heroku上配置:在Heroku
http://www.agileproductions.com/blog_posts/16-Page-Caching-by-Subdomain-in-Rails-and-Nginx
https://github.com/yeah/page_cache_fu