Download & Extend

Woopra and Varnish

Project:Woopra
Version:6.x-1.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

After I installed Woopra on my site, I found that the hit rate for Varnish became extremely bad, after investigating this I found that woopra was setting cookies which are unique per user and were creating causing the extremely bad hit rate in varnish.

Most people who are running varnish are already stripping out the google analytics and has_js from the cookies so that they are not included in the storage hash, but they need to also remove the woo* cookies as well if they are using woopra.

the code I use for this which is the vcl_recv subroutine is as follows.

set req.http.Cookie = regsuball(req.http.Cookie, "(^|;\s*)(__[a-z]+|has_js|woo.*)=[^;]*", "");

I think this needs to be added to the readme.txt and the documentation.