Looking at
https://github.com/nexcess/magento-turpentine#how-it-works
"""
The extension works in two parts, page caching and block (ESI/AJAX)
caching. A simplified look at how they work:
For pages, Varnish first checks whether the visitor sent a frontend
cookie. If they didn't, then Varnish will generate a new session token
for them. The page is then served from cache (or fetched from the
backend if it's not already in the cache), with any blocks with ESI
polices filled in via ESI. Note that the cookie checking is bypassed
for clients identified as crawlers (see the Crawler IP Addresses and
Crawler User Agents settings).
For blocks, the extension listens for the
core_block_abstract_to_html_before event in Magento. When this event
is triggered, the extension looks at the block attached to it and if
an ESI policy has been defined for the block then the block's template
is replaced with a simple ESI (or AJAX) template that tells Varnish to
pull the block content from a separate URL. Varnish then does another
request to that URL to get the content for that block, which can be
cached separately from the page and may differ between different
visitors/clients.
"""
This is not going to work. Your current setup is:
generate html > pagespeed > magento
Unfortunately the html you're feeding to pagespeed has ESIs that are
intended for magento, but pagespeed sees them as invalid html.
I think you can fix this by running pagespeed after your ESIs are interpreted:
generate html > magento > pagespeed
On Thu, Apr 24, 2014 at 9:46 AM, Guillaume Ziegler
<
guillaume....@gmail.com> wrote:
> I don't have LoadFromFile on.
>