localwiki/sapling — Issue #45: varnish set up for denton
Author: philipn
Created: 2011-11-24 09:55:33+00:00
State: open

A bit tricky due to SSL.

The usual "quick and dirty"-90% solution for varnish is to cache everything except requests containing cookies. But it looks like normal requests (non-editing) are showing cookies (__utmX -- for google analytics).

So the quick and dirty fix for us is to do something like this:

https://www.varnish-cache.org/trac/wiki/VCLExampleCachingLoggedInUsers

Where we check to see if the cookie is a google analytics cookie and, if so, we still send cached content.

This will be good enough for now.

----

Or we can just disable google analytics.