Add caching feature for JSON type response