Manual:$wgCacheVaryCookies

Details
A list of cookies that influence the cache (for use by extensions).