Re:Heroku Announces New Version: “Celadon Cedar”
by mrkurt on Tuesday May 31, 2011 @02:57PM
(#2603944)
It's possible that it strips the GA cookies (which is cool, I had no idea), but Varnish doesn't strip cookie information from the browser. If it did you wouldn't get any Rails sessions or anything.
Re:Heroku Announces New Version: “Celadon Cedar”
by sync on Wednesday June 01, 2011 @03:32PM
(#2608948)
It's not specific to GA cookies.
You can set cookies on uncached pages in ruby and read them without issue in JS on Varnish cached pages. The page will still be cached even if the user has a session cookie.
Basically: don't set or get cookies in ruby on cached pages and you'll be fine.
We've are running production apps with Varnish caching + Google Analytics without issue.
Set your cookies with JS or on uncached pages (such as POST logins) and you'll be fine.