3 ms·
I've actually stopped page caching since switching over to Heroku, and I really like using their HTTP caching with Varnish instead. I love that with HTTP you ca
by andrewvc 17y ago
I've actually stopped page caching since switching over to Heroku, and I really like using their HTTP caching with Varnish instead. I love that with HTTP you can cache pages with query strings in them and that time based expiration is easy. Additionally, web proxies can cache your page for users.
Additionally, setting up HTTP caching with rails is even easier than setting up page caching if you use Rack::Cache + Memcached (though it isn't as fast as varnish). The bonus advantage of using Rack::Cache is that since its a Rack plugin, it works regardless of the web server config. I can see this being useful for apps meant to be deployed simply at client sites, where admins may not know how to setup a server for Rails.