I remember being shouted at for not wearing sun cream, think it must have been in the mid eighties, but even then it was so you didn't burn not because of long term protection.
I can't remember when skin cancer awareness started, but it was definitely after my teens.
As you say, who knew.