Hello,<div><br></div><div>We're using Varnish since a few weeks but are facing the issue of using dynamic content inside cached pages.</div><div>We tried ESI for that but it appears that there's no way to pass some (or all) of the original request elements (headers, cookies) to the ESI request made toward our server.</div>
<div><br></div><div>We implemented hacks through cookies read from javascript, triggering ajax requests, but we're facing maintainability issues around browsers refusing cookies (our app run in an iframe and domains are different from the top frame).</div>
<div><br></div><div>So we're starting to think of developing the missing part of code in Varnish that could make it do what we need: </div><div>Allow to pass the original request headers and cookies to the ESI URI contained in a cached page.</div>
<div><br></div><div>So my questions are:</div><div>- Can you confirm that's it's currently not possible?</div><div>- What would be the amount of work to achieve this?</div><div>- Any tips to help me getting started with this?</div>
<div><br></div><div>Much thanks in advance to all.</div><div><br></div><div>Guilhaume Bordiau.</div>