Varnish

In this lesson, we'll discuss Varnish.

Introduction #

Varnish is a web cache and is used as an ESI implementation in the example.

Varnish is mainly used for optimizing web servers:

  1. It intercepts the HTTP requests to web servers.
  2. It then caches the responses.
  3. It forwards only those requests to the web servers that are not in the cache.

This improves performance.

Licence and support #

Varnish is licensed under a BSD license. The cache is mainly developed by Varnish Software, which also provides commercial support.

Caching with HTTP and HTTP headers #

Caching data correctly is not a trivial matter. Above all, the questions are when can ...