Origin and Etymology of flash in the pan
from the firing of the priming in the pan of a flintlock musket without discharging the piece
First Known Use: 1706
Depends on the reference. As such, a flash in the pan was also used to describe only a hint of success, such as in panning for gold.