improvements for caching in http configs