Magento 2 Varnish

Magento 2 Varnish. What is Varnish and how it can be used and configured in a Magento 2 store.

What is #

Varnish is an HTTP accelerator designed for content-heavy dynamic web sites as well as APIs.”

Magento 2 With Varnish #

Magento 2 with Varnish is the way to go to allow higher page load speeds. Varnish acts as a middle man and serves hole pages from it’s cache.

Magento 2 Without Varnish #

Running Magento 2 without Varnish is certainly possible to run but it will use more server resources with each request as running Magento 2 with Varnish reduces server usage considerably.

Magento Varnish Configuration #

For Varnish to be enabled in your Magento 2 store and used a few steps have to be taken in your Backend area. Go to:

  • STORES > Configuration > ADVANCED > System > Full Page Cache.

  • Click the drop-down box of “Caching Application.”

  • Choose “Varnish Caching” from the list.

Conclusion #

Magento 2 and Varnish is a good combination to have setup on your store as it can reduce load speeds for your customers.

Need help with Magento 2 Varnish ?