User_agent library: robuster detection in is_referral()
Cache result of is_referral()