refactored http cache manager