How did ancient people deal with the sun and avoid skin cancer and sunburn?

by partially-aries
voyeur324

I would start with the answers listed by /u/Searocksandtrees in this post. /u/colevintage talks about sun protection in the 18th century.

More answers would be welcome, since this is a popular topic.