For more explanations about the code, you could read all my articles about Varnish here Actually all articles are in French