Caching of ESI snippets

Joe Van Dyk joe at fixieconsulting.com
Mon Nov 30 21:55:32 CET 2009


On Mon, Nov 30, 2009 at 12:41 PM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <c715e640911301228v128b6b10p3e4fd427d76fd07e at mail.gmail.com>, Joe Va
> n Dyk writes:
>>I have two pages /main and /esi.
>>
>>/main returns:
>><esi:include src="/esi" />
>>
>>/esi has a cache-control of "max-age=60, public" and returns the current time.
>>
>>I'd expect that when I load /main, /esi would be requested once a
>>minute.  In a browser, /esi is loaded from the server everytime
>>(instead of the varnish sending the cached version).  In curl, it all
>>works as expected.
>
> You browser sends cookies along ?

Nope.

However, /include has this cache-control: private, max-age=0,
must-revalidate.  But I wouldn't think that would matter when varnish
decides whether or not to request /esi?



More information about the varnish-dev mailing list