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

| Q             | A
| ------------- | ---
| Bug fix?      | [yes]
| New feature?  | [no]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes]
| Fixed tickets | [#6982]
| License       | MIT

On 2.2, it also fixes another issue I'm getting, apparently ESIs can't be rendered, 403 responses are sent instead, because REMOTE_ADDR isn't a local IP or in the trusted IPs list, some new security checks with the new fragments stuff I guess,