Gasoline does not go bad if kept in a sealed container. Emphasis on sealed. That means zero exposure to atmospheric oxygen and atmospheric or other moisture, and zero chance of evaporation. Under those conditions, there should be no phase change. Although such storage conditions are difficult to achieve, it is possible.
More info than you probably want:
https://www.intechopen.com/books/storage...rage-conditions
This is one paper. There are, of course, conflicting opinions.
Under typical storage conditions, gas will go bad.