I have a PHP page that I cache with Varnish: http://categories.php?name=NAME. It has some ESI scripts like : < esi:include src="/esi.php" / >
All the pages have similar header, footer, sidebars so I remove the name=NAME when doing the VCL hash so all pages can get the same cache.
The problem is I would like inside the esi.php script to know what page issued the ESI request. Was it categories.php?name=A or categories.php?name=B ?
How can I do this? I didn't find this information anywhere.
I was thinking it might be inside the HTTP REFERER, but it isn't. :(