How to handle errors when using esi tags?
Felipe Santiago
jfelipe.sfilho at gmail.com
Tue Jul 12 21:47:51 UTC 2022
Hi,
I've been trying to use <esi:include src="/foo" alt="/bar"/> to execute a
subrequest to /bar in case /foo fails, however I didn't manage to make it
work. Do you support the alt attribute? If my backend returns a 4xx or 5xx,
is that considered an error?
I also found in the documentation some references on how to do that using
the esi:remove, but I didn't have success either. Any suggestions?
Thanks in advance.
Felipe Santiago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20220712/568dbcc8/attachment-0001.html>
More information about the varnish-misc
mailing list