I am looking to use varnish to help keep load of my web server. However I have a little problem.
The web site uses some custom tracking info which takes information like the IP, Referrer, campaign details and puts it in a cookie.
The obvious solution for this is to not cache requests that don't contain this cookie.
However this will mean that a lot of requests will not get served cached pages, including spambots and crawlers.
Can varnish set this information in a cookie it self, so that we can keep serving a cached page while setting a tracking cookie? Are there any libraries to do this?
Things to note
- We want to use this information to identify individual people further down the line, after a conversion which is against Google analytics TOS so we can't use that.
- a JS library by itself can't get the IP address, but if we could use a library in conjunction with a vcl rule that would be ok.