Was this in the US? I’ve tried and everyone told me filling an expired prescription is illegal. Even places that don’t do exams. I have an old prescription and don’t want to get an exam because of the pandemic.
I'd recommend getting glasses online from Zenni [0]. They just ask for the measurements of the prescription. There's nothing about expiration dates. And they're super inexpensive! Glasses are a racket.
I can't speak for the quality/durability of their frames, as I only used them to get some prescription lenses for my Valve Index so I can play in VR without wearing my glasses.