Rails page caching implemented as a Rack middleware