[HttpCache] made HttpCache updating the request as a reverse proxy would

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no (trusted_configs has 127.0.0.1 by default)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6982
| License       | MIT