Distributed HTTP caching backed by memcached and implemented via middleware