I install varnish(5) just like here: https://devdocs.magento.com/guides/v2.2/config-guide/varnish/config-varnish.html
I make test from varnish cli
varnishd -d -f /etc/varnish/default.vcl
start
Debug: Child (26063) Started
200 0
Info: Child (26063) said Child starts
Everything looks ok.
But when I try run curl test:
curl -I -v --location-trusted 'https://mymagento.com'
I don't see any varnish headers.
How can I debug this problem? Or where can I look for some tips?
Best Answer
Check this section in /etc/varnish/default.vcl
You'll notice that some headers were unset e.g.
Comment them out if you want to see them in the response headers.
Also make sure that you set your Magento 2 environment to 'developer'