- Issue created by @hoebekewim
- Merge request !23Issue #3504543: Removal of ESI comment tag to allow comment strippers to work → (Open) created by Unnamed author
Reference:
https://www.drupal.org/project/minifyhtml/issues/3504535
🐛
Support for Varnish ESI with Advanced Varnish
Needs work
Currently, when using a module that allows to strip comments from your html, as for example provided in the minifyhtml module, we are breaking the output of ESI content.
Enable the minifyhtml module and enable the comment stripping.
Enable the adv_varnish module, enable ESI, enable a block to use ESI and request the page from a url that passes varnish, ideally when not logged in.
You will notice that the block using ESI does not output anything.
Remove the <!-- esi
comments from the module, or allow to disable these.
There is no direct use case to have these comments, as Varnish will replace the ESI element upon loading the page, it should not arrive at the end user.
I will create a patch to work around this, needs review.
Needs work
4.0
Code