I am covered with skin cancer. I am not a physician and thus not qualified to give any expert advice about specific diseases or conditions. I would recommend that anyone seeking such advice contact their physician. There is some scientific evidence that both drinking tea and caffeine ointment have cancer-fighting properties. However, it is definitely possible to drink lots of tea and still get skin cancer.
More research needs to be done to establish the connection.
Furthermore, it is only one of a multitude of factors involved in cancer. A similar situation is the connection between exercise and heart health. Exercise is good for your heart, but lots of people who regularly exercise still get heart attacks. The authors of the caffeine study started working with tea because there were studies in the medical literature indicating that it had some cancer-fighting properties. Initially, they didn't know what aspect of tea might have an impact and only later identified it as caffeine.