The other day, during a daily stand-up, we were discussing how to improve our main website speed. Most of the solutions proposed were related to caching at the software level. My proposal was a bit different, as in the past, when working on Magento infrastructure, I discovered Varnish.

Varnish is a cache software that can be implemented as a reverse proxy. All requests are received first by Varnish, and then, based on its configuration file, the response can be cached or allowed to hit the server behind. The first time Varnish starts, when receiving a request, it validates that there is no cached copy of it. If there is no cached content, it will consider it a miss and will pass the request to the server behind. If the file or content is allowed to be cached, it will save the content in memory, and the next time the same request hits your server, it will return the content immediately.