A coffee spill is easier to approach when the garment's care label remains the starting point. The source discusses removing fresh and dried stains, including the added complication of milk-containing drinks. Different fabrics and finishes can respond differently to the same treatment. If the care label permits water washing, rinsing from the reverse of the affected area can help move the spill out of the fabric.
Blot excess liquid rather than rubbing it widely through the material. Follow appropriate care instructions for rinsing and detergent, and test a cleaner on an inconspicuous area before applying it to a visible stain. Avoid combining household chemicals casually or assuming that a social-media mixture suits every fabric.
After cleaning, check the result before applying heat through drying or ironing. A persistent mark may require another treatment or professional attention, particularly on delicate clothing. There is no need to explain stain strength through an unverified coffee-origin theory: the useful questions are what was spilled, which fabric was affected and which cleaning method that fabric permits.

The conversation
A good question can make a better brew.