Skip to content

Magento 2: Varnish is caching for individual user

I have configured Varnish & nginx and is working fine, but I have noticed that Varnish is caching separately for each user. Suppose, I visit a page I get X-Cache: Miss and if I visit again by refreshing the page I get X-Cache: HIT and cache count now is 1.

Perfect, now that the page has been cached, I think other user’s should get a faster page load and varnish should fetch data from cache. However, now if I visit the same page again from another browser, I again get X-Cache: MISS and then on refreshing I get HIT.

Is this a normal behavior? I am using Varnish configuration provided by the official Varnish docs for Magento 2.