Diesel and other heavier fuels generally are much closer to aliphatic hydrocarbons (straight chains, not aromatic) and so are much more storable, because aliphatic hydrocarbons have much less opportunity for oxidation (they're like saturated fat, i.e. much more stable).
You can get polymerization inhibitors to put into gasoline if you want it for long term storage, with the caveat that they produce some nastiness at the bottom of tanks that you'll have to avoid when pumping it out, and I think they can also slightly reduce the octane rating.