new middleware caching response