Working with websites that get a lot of traffic usually means placing a caching layer in front of your web servers. Years ago this would have been a Squid install but it was never really designed for reverse proxying and would crumble under enough load.
Varnish arose to fill this need in the industry. It has gone from strength to strength since its release and while it is very good at what
it does, it can be a nightmare to diagnose issues with content that's already stored in the cache.
Logging has improved over the years but there have been many times that I wished there had been a mysqldump-a-like available for varnish. Below is a technique I have used in the past to see what's happening inside Varnish.
Let's install Varnish and Apache with Varnish forwarding to Apache for testing
This should place you in a "less" session with the details about the request through varnish for the cache entry "test.html" that we created above.
I have forked the Varnish code base at github to produce the tool listed at the top of this article but the Varnish code is vast and complex beast. Until it's ready the steps above should help you diagnose issues with cache entries.
If you're aware of a tool that does this natively, have any ideas about one or have any questions then let me know at [email protected].
Insufficient resolution detected
This site is designed for a minimum horizontal resolution of 1250 pixels.
If you are using tablet you may be able to resolve this by turning it to a landscape orientation,
otherwise you can continue using the button below but the site may not work as intended.