Fix REMOTE_ADDR for cached subrequests

Fixes #7091
[HttpKernel] added some tests for previous merge