Getting caching and cookies working in harmony.