When a site use a reverse proxy (after the CDN) and https, the restored client IP makes the system fail to detect https properly. As a result, page cache breaks - but that was just one symptom of the problem as generally the system fails do detect secure requests since the remote address is not the remote address of the reverse proxy.

CommentFileSizeAuthor
#2 d8_cloudflare.patch768 bytesfago

Comments

fago created an issue. See original summary.

fago’s picture

Status: Active » Needs review
StatusFileSize
new768 bytes
fago’s picture

Above simple patch fixes the problem for me.

kmoll’s picture

I have also just run into this issue. I've tested the patch and it works.

kmoll’s picture

Status: Needs review » Reviewed & tested by the community
timmillwood’s picture

This has been RTBC for 8 months, can it be committed?

  • vijaycs85 committed 44bd678 on 8.x-1.x authored by fago
    Issue #2894890 by fago: Restoring Client IP functionality breaks page...
vijaycs85’s picture

Status: Reviewed & tested by the community » Fixed

Sorry for the delay and thank for the patch, reviews.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.