If you don't want to concern yourself with the mess Canam mentioned above, go by this rule: if the everything goes on tight without the spacer, leave it off. If there is play in the cassette with the lockring tightened, you need the spacer.
__________________
It's like riding a bicycle