Caching of ESI snippets

Joe Van Dyk joe at
Mon Nov 30 21:28:02 CET 2009

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.


Joe Van Dyk

More information about the varnish-dev mailing list