Move caching middleware to web.middleware ns.