I also do the sniff and if it smells ok taste it. However, I’m not familiar enough with coconut oil to know.
I’m also doing some long term pantry stocking and wondered how long it would last, so I could figure out how to rotate the stock. We usually use olive oil, ghee, or avocado oil.
But I was reading that unrefined coconut oil had a longer shelf life than most oils.
I think the unrefined stuff does last longer.
If you’re stocking up, put it in the freezer.
I’ve had lard in there for years, now. I wouldn’t be afraid to use it.
I think that properly made ghee lasts indefinitely. And I don’t see why you can’t put olive oil in the freezer, either.
My husband likes avocado oil; I’m not a fan. He claims it doesn’t have a ‘taste’, but I tried some in muffins instead of butter recently, and didn’t like the taste. For salad dressing, I use olive oil.