The purported defence of "it's a joke" is not a good one.
I could make a long list of "jokes" that would now be regarded as offensive.
There are the ones about mean Jews and Scots,
the ones about "niggers"
the ones about women
the ones about the Irish
and many more.