Add caching support to the HTTPFactory