In the later examples, I don't think it's very clear that you're using the timestamps to show which responses are fresh and which are cached. Coloring the fresh/cached responses differently in the output might help.
Look forward to your next post.
I agree that colouring the output could make things more clear. I'll keep it in mind for future articles!
"By using context aware caching, you can achieve high levels of caching for both anonymous and logged in users, unlike a dumb cache which generally excludes logged in user requests" or something like that.
In that use case, you might find that one cache covers everything except their shopping cart preview. This is where ESI (Edge Side Includes) come in. I've never used it in practice, but the idea is similar to server side includes of yesteryear. Here's a good article:
http://blog.redfin.com/devblog/2010/05/esi_and_caching_trick...
Currently, new directions do not include Varnish but I was starting to re-consider that position and this article was a nice reminder. Thanks!
"Development of this VMOD has been sponsored by the Norwegian company Aspiro Music AS for usage on their WiMP music streaming service." from <https://github.com/varnish/libvmod-curl#readme>;
http://highscalability.com/blog/2012/9/12/using-varnish-for-...