Give the gift of Drupal. All merchandise is 50% off through 2016.
Varnish does not seem to cache properly the ESI fragment.
I have set up varnish locally and tested it to make sure it works properly by pointing to a static HTML and then by fully caching the page and seeing the two X-Varnish keys. Both show cache keys and drastic improved performance. The next thing was to test esi fragments by making the footer pane be cachable via esi. The esi module is successfully adding the esi tag and looks something like this:
<esi:include src="http://mylocalsite.co:8080/forums/esi/panels_pane/ibase%3A29%3A279/0/aG9tZQ%3D%3D" />
ESI Markup Shows but SRC Leads to 503 Service Unavailable
http://mylocalsite.co:8080/forums is the root of the application and when I searched for the esi/panels_pane folders in the root, they were not there. Clicking on the link seen in the src leads to a 503 Service Unavailable. Adding them manually does not seem to help at all, or at least, there is nothing that gets dumped in there. I imagined is saved into memory only?
Steps to Reproduce
- Set render mode to ESI in /admin/config/development/esi
- Go into a panelized page and make one of the panes be cached as ESI
- Ensure varnish is running
- Preview site on the port varnish is listening to (my case is port 8080)
- Now the pane that has be made a fragment may or may not render a 503 notice in addition to the pane HTML itself.
- Looking at the source code reveals that the esi tag is there but when you click on the src link it always take you to a 503 page.
ESI Modules Used
- ESI - Block
- ESI - Edge Side Includes
- ESI - Panels
- Varnish (Not sure if I needed anymore)
- default.vcl pastebin.com/yaW0hZeL
- esi_blocks.vcl pastebin.com/1CMr6q4E
- drupal.vcl pastebin.com/cz7zNDqQ
- Varnish 3.0 varnishd (varnish-3.0.3 revision 9e6a70f)
- Drupal 7
- esi module - 7.x-3.x branch
Does anyone know what am I missing? Is the vcl file correct or missing something?