Problem/Motivation
Reference: https://www.drupal.org/project/minifyhtml/issues/3504535
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.
Steps to reproduce
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.
Proposed resolution
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.
Remaining tasks
I will create a patch to work around this, needs review.
Issue fork adv_varnish-3504543
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
hoebekewim commentedComment #4
hoebekewim commentedComment #7
shumer commented