Magento Asked by Maciej on February 17, 2021
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?
My response headers:
Cache-Control: max-age=0, must-revalidate, no-cache, no-store
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Date: Tue, 08 May 2018 09:21:19 GMT
Expires: Mon, 08 May 2017 09:20:52 GMT
Pragma: no-cache
Server: nginx/1.10.3
Set-Cookie: form_key=HfXDuOKLNlnRkV3x; expires=Tue, 08-May-2018 10:20:52 GMT; Max-Age=3600; path=/; domain=
Set-Cookie: PHPSESSID=s72hj0entb9avq6f8vtkt53bcu; expires=Tue, 08-May-2018 10:20:52 GMT; Max-Age=3600; path=/; domain=; HttpOnly
Transfer-Encoding: chunked
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Magento-Debug: 1
X-XSS-Protection: 1; mode=block
Answered by Maciej on February 17, 2021
https://devdocs.magento.com/guides/v2.2/config-guide/varnish/config-varnish-final.html
First, make sure you are using Magento’s developer mode; otherwise, you won’t see the headers.
Answered by Bilal Usean on February 17, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP