ESI ban question

Andreas Plesner Jacobsen apj at mutt.dk
Thu Nov 17 10:42:19 CET 2011


On Thu, Nov 17, 2011 at 10:30:55AM +0100, Martin Koch Andersen wrote:
> 
> If you have /a.html containing:
> 
> <h1>a.html</h1>
> <esi:include src="/b.html" />
> 
> And I then do a BAN of /a.html - it seems that /b.html is banned as well?

No:

apj at marvin:~$ cat /var/www/a.html 
<h1>a.html</h1>
<esi:include src="/b.html" />
apj at marvin:~$ cat /var/www/b.html 
2
apj at marvin:~$ varnishadm ban.url a.html
CLI connected to 127.0.0.1 6082

apj at marvin:~$ GET localhost/a.html
<h1>a.html</h1>
1
apj at marvin:~$ varnishadm ban.url b.html
CLI connected to 127.0.0.1 6082

apj at marvin:~$ GET localhost/a.html
<h1>a.html</h1>
2

(b.html used to contain "1")

-- 
Andreas




More information about the varnish-misc mailing list