I am trying to use esi to do ninja caching on my site. The idea is that the site is mostly static, I just need to pretend if the user is logged in or not. So I tried to put on page A and set the triggers in the application on page B.
That way I could cache page A on the varnish and let the server handle a little work, which is page B.
But the cookies I set on page B were not redirected to page A headers and did not work = /
Is this what I'm trying to make possible?
I could use ajax, but doing it inside the server before sending the page to the user seems to me more correct.
ps: I cannot create the esi tag = /
ruby-on-rails nginx varnish edge-side-includes
Tiago
source share