r2108 - trunk/varnish-cache/bin/varnishd

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Oct 18 13:01:22 CEST 2007


In message <ujrr6jsheuu.fsf at false.linpro.no>, =?iso-8859-1?Q?Dag-Erling_Sm=F8rg
rav?= writes:
>"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
>> Dag-Erling Sm=F8rgrav <des at linpro.no> writes:
>> > An ESI document doesn't need to be well-formed XML (it could be
>> > SGML, or JavaScript, or plain text, or whatever), basically you
>> > just want to grep for <esi:whatever> and ignore everything else.
>> Not quite, I've read up on ESI, both on w3c, oracle and akamai, and
>> my conclusion is that ESI, with one exception, does not stand
>> outside the XML (SGML ?) syntax of the basic document, if it has
>> one.
>
>They key here is "if it has one" - not to mention that what the spec
>says is not necessarily an accurate reflection of what you will see in
>the wild.

I've done my best to accomodate the "if it has one" scenario, but there
is no excaping that the ESI standard is expressed in XML syntax.

Provided you don't have too things in your file which will foul up
the XML aspect of ESI, then my parser will work correctly.

Having <esi:include bla bla> in the middle of a file which is all
javascript will work, as long as the main contents of the file
does not make it impossible to find the XML esi specification.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-commit mailing list