Amazon has already been using machine learning to separate fresh vs. moldy strawberries; I'm sure AI will be able to identify the freshest cookies better than humans in the near future.
What this means is that when you buy an item which almost nobody buys fresh, like say apricots or coconuts (the case here, YMMV) and its easily perishable then you may end up with food which you gotta consume very soon once you receive it. If you buy an item in high demand with a high turnover rating you're probably good to go though.
Fresh is overrated anyway. Get a large freezer. I got all my bread in freezer, all bought on sale (50% discount). We generally toast it, but having it out of the freezer overnight also works. Same with frozen fruit (berries esp) and some frozen veggies. It doesn't deteriorate either, and stays quite tasty (better than canned, generally). And its cheap!
Got a link to share?