We have configure varnish in Magento 2.4.5. Backend configure some as given below Screenshot.
but in frontend not show "X-Magento-Cache-Debug:MISS/HIT".
Frontend:- https://i.imgur.com/YDnDhAb.png
anyone idea of above issue?
We have configure varnish in Magento 2.4.5. Backend configure some as given below Screenshot.
but in frontend not show "X-Magento-Cache-Debug:MISS/HIT".
Frontend:- https://i.imgur.com/YDnDhAb.png
anyone idea of above issue?
It does not make sense for your Magento backend to listen on port 80, because that's the port that Varnish is going to listen on.
The fact that this does not result in an error makes me suspect that Varnish isn't properly listening on port 80.
Once you can assure that Varnish is properly configured, could you attach the output of the following command to your original question?
sudo varnishlog -g request -q "ReqUrl eq '/'"
This command will print logging output for incoming Varnish requests for the homepage. Make sure you enabled debug mode in Magento, otherwise the X-Magento-Cache-Debug
header will not appear in your response headers.
varnishd
runtime parameters. If you're running varnishd
via systemd, the systemd unit file is good enough. This extra context will help me better understand the issue.
Commented
May 31, 2023 at 15:35