Added http cache implementation, Fixed some warnings