cache all headers when caching responses in middleware