Have had the same thing on an A320 at top of descent, although recovery was a lot more rapid.
So rapid, in fact, that even though we felt a kick as the aircraft yawed and heard a bang, the engine instruments had just recovered before we were able to assimliate what they were telling us.
It was only when the purser came into the flight deck to tell us pax had seen flames coming out of the front of the RH engine that we had a clue which one it had been!
No reoccurence, and put down to a sticking Variable Stator Vane (VSV) or bleed valve.
VSVs are refinements of the compressor section which allow for very precise control of the compression schedule through the rotors and staors, by bleeding air off in appropriate places to allow efficient performance on the 'edge' of the operating envelope without the risk of stall. If one is a bit 'sticky' then the airflow, operating under an adverse pressure gradient whilst being compressed and thus prone to 'depart' with only minor persuasion, can break down and burp back out the front.
We in fact subsequently found out, after the engine suffered a non-recoverable stall with v. high vibration a week or so later, that it was due to the abradable lining around the rotors having deteriorated and starting to fall down the engine in chunks.
Whoops!