Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I believe that the Apache mod_deflate must be disabled for this to work. Otherwise you get the dreaded
12 ESI_xmlerror c No ESI processing, first char not ‘< '
in the varnishlog.
Comments
Comment #1
manarth CreditAttribution: manarth commentedBy default, Varnish will only process ESIs on XML-valid documents, which is why it fails for gzipped docs. This can be overridden with a startup config: setting esi_syntax=0x3
It doesn't address the problem though: Varnish cannot read gzipped/compressed pages.
I'll add it to the docs :-)
Comment #2
AgaPe CreditAttribution: AgaPe commentedplease please add it to the docs :)
nasty thing
Comment #3
AgaPe CreditAttribution: AgaPe commentedhmm how/where to apply this esi_syntax parameter?
would be thankful for some help. hard to find it..
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedMoving this to 2.x
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedComment #6
branana CreditAttribution: branana commentedTo answer this very old question,
you can add the config to your varnish daemon opts, something like
Comment #7
asb CreditAttribution: asb commentedIs #6 still applicable after Varnish 3.0 changes ESI syntax, supports GZIP #504?
Comment #8
dstuart CreditAttribution: dstuart at Axis12 Limited commentedNo longer supported