Most cancer is not preventable. Most cases occur by chance events such as mutations, deletions, insertions and such genetic changes associated with advanced years. In general cancer is a disease of the older population, not just in humans, but in animals too.
This article implies that liver cancer can be successfully treated.